#DEC04D#DEC04D

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

Color values

HEX#DEC04D
RGBrgb(222, 192, 77)
HSLhsl(48, 69%, 59%)
HSVhsv(48, 65%, 87%)
CMYKcmyk(0%, 13.5%, 65.3%, 12.9%)
CIE-LABlab(78.33, -2.10, 59.92)
CIE-LCHlch(78.33, 59.96, 92.01°)
OKLaboklab(81.25% -0.0106 0.1358)
OKLCHoklch(81.25% 0.136 94.5)
XYZxyz(50.3158, 53.7673, 14.7476)
Luminance0.5376 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEC04D #4D6BDE
analogous
#DE774D #DEC04D #B3DE4D
triadic
#DEC04D #4DDEC0 #C04DDE
tetradic
#DEC04D #4DDE77 #4D6BDE #DE4DB3
square
#DEC04D #4DDE77 #4D6BDE #DE4DB3
split-complementary
#DEC04D #4DB3DE #774DDE
monochromatic
#957C1C #C9A725 #DEC04D #E8D281 #F1E5B4

Accessibility & contrast

On white

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

On black

11.75
#DEC04D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEC04D
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEC04D#FFFFFF#000000##000000
##DEC04D1.001.7911.7511.75
#FFFFFF1.791.0021.0021.00
#00000011.7521.001.001.00
##00000011.7521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #dec04d;
/* rgb */ color: rgb(222, 192, 77);
/* oklch */ color: oklch(81.3% 0.136 94.5);
Tailwind
colors: {
  custom: {
    50: '#ecd284',
    500: '#dec04d',
    950: '#000000',
  },
}
SCSS
$custom: #dec04d;
$custom-light: #ecd284;
$custom-dark: #000000;
JSON
{
  "hex": "#dec04d",
  "rgb": {
    "r": 222,
    "g": 192,
    "b": 77
  },
  "hsl": {
    "h": 47.586,
    "s": 68.72,
    "l": 58.627
  },
  "oklch": {
    "l": 0.8125,
    "c": 0.13623,
    "h": 94.5
  },
  "luminance": 0.53765
}

Semantic roles & 50–950 ramp

primary
#DEC04D
secondary
#364A99
accent
#61EC3C
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #DEC04D

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

Preview Lab → · Contrast checker → · Palette generator →

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