CSS Named Color / Web Safe Color
Copy-ready color values
HEX
#FF0000RGB
rgb(255, 0, 0)HSL
hsl(0, 100%, 50%)HSV
hsv(0, 100%, 100%)CMYK approx.
cmyk(0, 100, 100, 0)Color value table
| Format | Value | Copy |
|---|---|---|
| HEX | #FF0000 | |
| RGB | rgb(255, 0, 0) | |
| HSL | hsl(0, 100%, 50%) | |
| HSV | hsv(0, 100%, 100%) | |
| CMYK approx. | cmyk(0, 100, 100, 0) | |
| CSS keyword | red |
Contrast and classification
DarkLightness4.00:1Contrast with white5.25:1Contrast with blackMagenta / PurpleColor family
Shade and tint preview
White 10%#FF1A1A
White 30%#FF4D4D
White 70%#FFB3B3
White 90%#FFE6E6
Black 10%#E60000
Black 30%#B30000
Black 70%#4D0000
Black 90%#1A0000
Harmony palettes
Complementary
#00FFFF#3DFFFFAnalogous
#E0001F#FF0000Triadic
#0000FF#00FF00Split complementary
#2EFFFF#00D1D1Using Red
Red works best when it is chosen with contrast, surrounding colors, and interface state in mind. Use the HEX value for static CSS, RGB when you need channel-level control, and HSL when adjusting lightness or saturation for hover states. The CMYK value is an approximate screen-to-print conversion, so print workflows should still rely on calibrated design software or a printer profile.
CSS, SCSS, and Tailwind examples
:root {
--color-red: #ff0000;
}
.button-primary {
background: var(--color-red);
color: #000000;
}
$red: #ff0000;
// Tailwind arbitrary value
class="bg-[#ff0000] text-white"