#DEC962#DEC962

#DEC962 is a very light, vivid yellow. Relative luminance 0.582; OKLCH L 83.3% C 0.126 H 98.0°. Best body text is #000000 at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#DEC962
RGBrgb(222, 201, 98)
HSLhsl(50, 65%, 63%)
HSVhsv(50, 56%, 87%)
CMYKcmyk(0%, 9.5%, 55.9%, 12.9%)
CIE-LABlab(80.84, -5.32, 53.32)
CIE-LCHlch(80.84, 53.58, 95.70°)
OKLaboklab(83.31% -0.0174 0.1245)
OKLCHoklch(83.31% 0.126 98)
XYZxyz(53.2174, 58.1870, 19.9809)
Luminance0.5818 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEC962 #6277DE
analogous
#DE8B62 #DEC962 #B5DE62
triadic
#DEC962 #62DEC9 #C962DE
tetradic
#DEC962 #62DE8B #6277DE #DE62B5
square
#DEC962 #62DE8B #6277DE #DE62B5
split-complementary
#DEC962 #62B5DE #8B62DE
monochromatic
#A38D22 #D3B82F #DEC962 #E9DA95 #F3ECC7

Accessibility & contrast

On white

1.66
#DEC962 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.64
#DEC962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEC962
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEC962#FFFFFF#000000##000000
##DEC9621.001.6612.6412.64
#FFFFFF1.661.0021.0021.00
#00000012.6421.001.001.00
##00000012.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC458
Deuteranopia (green-blind)
#E0CC67
Tritanopia (blue-blind)
#EDBCB2
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #dec962;
/* rgb */ color: rgb(222, 201, 98);
/* oklch */ color: oklch(83.3% 0.126 98.0);
Tailwind
colors: {
  custom: {
    50: '#ebd992',
    500: '#dec962',
    950: '#000000',
  },
}
SCSS
$custom: #dec962;
$custom-light: #ebd992;
$custom-dark: #000000;
JSON
{
  "hex": "#dec962",
  "rgb": {
    "r": 222,
    "g": 201,
    "b": 98
  },
  "hsl": {
    "h": 49.839,
    "s": 65.263,
    "l": 62.745
  },
  "oklch": {
    "l": 0.83305,
    "c": 0.12568,
    "h": 98
  },
  "luminance": 0.58185
}

Semantic roles & 50–950 ramp

primary
#DEC962
secondary
#3E50A6
accent
#37CD18
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#17140D
muted
#85837F

Preview Lab

Preview with #DEC962

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

Preview Lab → · Contrast checker → · Palette generator →

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