#DEC162#DEC162

#DEC162 is a light, moderate yellow. Relative luminance 0.546; OKLCH L 81.7% C 0.119 H 92.6°. Best body text is #000000 at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#DEC162
RGBrgb(222, 193, 98)
HSLhsl(46, 65%, 63%)
HSVhsv(46, 56%, 87%)
CMYKcmyk(0%, 13.1%, 55.9%, 12.9%)
CIE-LABlab(78.78, -1.19, 50.93)
CIE-LCHlch(78.78, 50.94, 91.34°)
OKLaboklab(81.68% -0.0055 0.1193)
OKLCHoklch(81.68% 0.119 92.6)
XYZxyz(51.4009, 54.5538, 19.3754)
Luminance0.5455 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEC162 #627FDE
analogous
#DE8362 #DEC162 #BDDE62
triadic
#DEC162 #62DEC1 #C162DE
tetradic
#DEC162 #62DE83 #627FDE #DE62BD
square
#DEC162 #62DE83 #627FDE #DE62BD
split-complementary
#DEC162 #62BDDE #8362DE
monochromatic
#A38522 #D3AD2F #DEC162 #E9D595 #F3E9C7

Accessibility & contrast

On white

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

On black

11.91
#DEC162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEC162
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEC162#FFFFFF#000000##000000
##DEC1621.001.7611.9111.91
#FFFFFF1.761.0021.0021.00
#00000011.9121.001.001.00
##00000011.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BE59
Deuteranopia (green-blind)
#DAC766
Tritanopia (blue-blind)
#EEB4AB
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #dec162;
/* rgb */ color: rgb(222, 193, 98);
/* oklch */ color: oklch(81.7% 0.119 92.6);
Tailwind
colors: {
  custom: {
    50: '#ebd391',
    500: '#dec162',
    950: '#000000',
  },
}
SCSS
$custom: #dec162;
$custom-light: #ebd391;
$custom-dark: #000000;
JSON
{
  "hex": "#dec162",
  "rgb": {
    "r": 222,
    "g": 193,
    "b": 98
  },
  "hsl": {
    "h": 45.968,
    "s": 65.263,
    "l": 62.745
  },
  "oklch": {
    "l": 0.81677,
    "c": 0.11943,
    "h": 92.6
  },
  "luminance": 0.54551
}

Semantic roles & 50–950 ramp

primary
#DEC162
secondary
#3E56A6
accent
#43CD18
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#17140D
muted
#85837F

Preview Lab

Preview with #DEC162

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

Preview Lab → · Contrast checker → · Palette generator →

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