#DEC04C#DEC04C

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

Color values

HEX#DEC04C
RGBrgb(222, 192, 76)
HSLhsl(48, 69%, 58%)
HSVhsv(48, 66%, 87%)
CMYKcmyk(0%, 13.5%, 65.8%, 12.9%)
CIE-LABlab(78.32, -2.16, 60.34)
CIE-LCHlch(78.32, 60.37, 92.05°)
OKLaboklab(81.24% -0.0109 0.1365)
OKLCHoklch(81.24% 0.137 94.6)
XYZxyz(50.2808, 53.7533, 14.5631)
Luminance0.5375 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEC04C #4C6ADE
analogous
#DE774C #DEC04C #B3DE4C
triadic
#DEC04C #4CDEC0 #C04CDE
tetradic
#DEC04C #4CDE77 #4C6ADE #DE4CB3
square
#DEC04C #4CDE77 #4C6ADE #DE4CB3
split-complementary
#DEC04C #4CB3DE #774CDE
monochromatic
#947B1B #C8A625 #DEC04C #E8D280 #F1E4B3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##DEC04C#FFFFFF#000000##000000
##DEC04C1.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)
#D3BC3E
Deuteranopia (green-blind)
#DBC652
Tritanopia (blue-blind)
#EFB2A8
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #dec04c;
/* rgb */ color: rgb(222, 192, 76);
/* oklch */ color: oklch(81.2% 0.137 94.6);
Tailwind
colors: {
  custom: {
    50: '#ecd283',
    500: '#dec04c',
    950: '#000000',
  },
}
SCSS
$custom: #dec04c;
$custom-light: #ecd283;
$custom-dark: #000000;
JSON
{
  "hex": "#dec04c",
  "rgb": {
    "r": 222,
    "g": 192,
    "b": 76
  },
  "hsl": {
    "h": 47.671,
    "s": 68.868,
    "l": 58.431
  },
  "oklch": {
    "l": 0.81241,
    "c": 0.13698,
    "h": 94.6
  },
  "luminance": 0.53751
}

Semantic roles & 50–950 ramp

primary
#DEC04C
secondary
#354A99
accent
#60EC3C
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #DEC04C

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

Preview Lab → · Contrast checker → · Palette generator →

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