#DEC04F#DEC04F

#DEC04F is a light, vivid yellow. Relative luminance 0.538; OKLCH L 81.3% C 0.135 H 94.3°. Best body text is #000000 at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#DEC04F
RGBrgb(222, 192, 79)
HSLhsl(47, 68%, 59%)
HSVhsv(47, 64%, 87%)
CMYKcmyk(0%, 13.5%, 64.4%, 12.9%)
CIE-LABlab(78.34, -1.98, 59.08)
CIE-LCHlch(78.34, 59.11, 91.92°)
OKLaboklab(81.27% -0.01 0.1343)
OKLCHoklch(81.27% 0.135 94.3)
XYZxyz(50.3875, 53.7960, 15.1252)
Luminance0.5379 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEC04F #4F6DDE
analogous
#DE794F #DEC04F #B4DE4F
triadic
#DEC04F #4FDEC0 #C04FDE
tetradic
#DEC04F #4FDE79 #4F6DDE #DE4FB4
square
#DEC04F #4FDE79 #4F6DDE #DE4FB4
split-complementary
#DEC04F #4FB4DE #794FDE
monochromatic
#967D1C #CAA826 #DEC04F #E8D283 #F1E5B6

Accessibility & contrast

On white

1.79
#DEC04F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.76
#DEC04F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEC04F
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEC04F#FFFFFF#000000##000000
##DEC04F1.001.7911.7611.76
#FFFFFF1.791.0021.0021.00
#00000011.7621.001.001.00
##00000011.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BC42
Deuteranopia (green-blind)
#DAC655
Tritanopia (blue-blind)
#EFB2A8
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #dec04f;
/* rgb */ color: rgb(222, 192, 79);
/* oklch */ color: oklch(81.3% 0.135 94.3);
Tailwind
colors: {
  custom: {
    50: '#ecd285',
    500: '#dec04f',
    950: '#000000',
  },
}
SCSS
$custom: #dec04f;
$custom-light: #ecd285;
$custom-dark: #000000;
JSON
{
  "hex": "#dec04f",
  "rgb": {
    "r": 222,
    "g": 192,
    "b": 79
  },
  "hsl": {
    "h": 47.413,
    "s": 68.421,
    "l": 59.02
  },
  "oklch": {
    "l": 0.81269,
    "c": 0.13472,
    "h": 94.3
  },
  "luminance": 0.53793
}

Semantic roles & 50–950 ramp

primary
#DEC04F
secondary
#374C9B
accent
#61EB3D
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #DEC04F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#DEC04F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva