CSS Named Color / Web Safe Color
Copy-ready color values
HEX
#FFFF00RGB
rgb(255, 255, 0)HSL
hsl(60, 100%, 50%)HSV
hsv(60, 100%, 100%)CMYK approx.
cmyk(0, 0, 100, 0)Color value table
| Format | Value | Copy |
|---|---|---|
| HEX | #FFFF00 | |
| RGB | rgb(255, 255, 0) | |
| HSL | hsl(60, 100%, 50%) | |
| HSV | hsv(60, 100%, 100%) | |
| CMYK approx. | cmyk(0, 0, 100, 0) | |
| CSS keyword | yellow |
Contrast and classification
DarkLightness1.07:1Contrast with white19.56:1Contrast with blackRed / OrangeColor family
Shade and tint preview
White 10%#FFFF1A
White 30%#FFFF4D
White 70%#FFFFB3
White 90%#FFFFE6
Black 10%#E6E600
Black 30%#B3B300
Black 70%#4D4D00
Black 90%#1A1A00
Harmony palettes
Complementary
#0000FF#3D3DFFAnalogous
#FFFF1F#FFE01FTriadic
#FF00FF#00FFFFSplit complementary
#2E2EFF#0000D1Using Yellow
Yellow 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-yellow: #ffff00;
}
.button-primary {
background: var(--color-yellow);
color: #000000;
}
$yellow: #ffff00;
// Tailwind arbitrary value
class="bg-[#ffff00] text-white"