#DEC251#DEC251

#DEC251 is a light, vivid yellow. Relative luminance 0.547; OKLCH L 81.7% C 0.135 H 95.3°. Best body text is #000000 at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#DEC251
RGBrgb(222, 194, 81)
HSLhsl(48, 68%, 59%)
HSVhsv(48, 64%, 87%)
CMYKcmyk(0%, 12.6%, 63.5%, 12.9%)
CIE-LABlab(78.87, -2.89, 58.78)
CIE-LCHlch(78.87, 58.86, 92.82°)
OKLaboklab(81.69% -0.0124 0.134)
OKLCHoklch(81.69% 0.135 95.3)
XYZxyz(50.9035, 54.7098, 15.6618)
Luminance0.5471 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEC251 #516DDE
analogous
#DE7C51 #DEC251 #B4DE51
triadic
#DEC251 #51DEC2 #C251DE
tetradic
#DEC251 #51DE7C #516DDE #DE51B4
square
#DEC251 #51DE7C #516DDE #DE51B4
split-complementary
#DEC251 #51B4DE #7C51DE
monochromatic
#987F1D #CBAB27 #DEC251 #E8D484 #F2E6B8

Accessibility & contrast

On white

1.76
#DEC251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.94
#DEC251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEC251
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEC251#FFFFFF#000000##000000
##DEC2511.001.7611.9411.94
#FFFFFF1.761.0021.0021.00
#00000011.9421.001.001.00
##00000011.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BE44
Deuteranopia (green-blind)
#DCC757
Tritanopia (blue-blind)
#EFB4AA
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #dec251;
/* rgb */ color: rgb(222, 194, 81);
/* oklch */ color: oklch(81.7% 0.135 95.3);
Tailwind
colors: {
  custom: {
    50: '#ecd487',
    500: '#dec251',
    950: '#000000',
  },
}
SCSS
$custom: #dec251;
$custom-light: #ecd487;
$custom-dark: #000000;
JSON
{
  "hex": "#dec251",
  "rgb": {
    "r": 222,
    "g": 194,
    "b": 81
  },
  "hsl": {
    "h": 48.085,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.81694,
    "c": 0.13459,
    "h": 95.3
  },
  "luminance": 0.54707
}

Semantic roles & 50–950 ramp

primary
#DEC251
secondary
#374B9C
accent
#5FEB3D
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #DEC251

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

Preview Lab → · Contrast checker → · Palette generator →

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