#DCD162#DCD162

#DCD162 is a very light, vivid yellow. Relative luminance 0.617; OKLCH L 84.8% C 0.133 H 103.6°. Best body text is #000000 at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#DCD162
RGBrgb(220, 209, 98)
HSLhsl(55, 64%, 62%)
HSVhsv(55, 55%, 86%)
CMYKcmyk(0%, 5%, 55.5%, 13.7%)
CIE-LABlab(82.75, -10.22, 55.47)
CIE-LCHlch(82.75, 56.40, 100.44°)
OKLaboklab(84.78% -0.0314 0.1291)
OKLCHoklch(84.78% 0.133 103.6)
XYZxyz(54.5220, 61.7003, 20.5903)
Luminance0.6170 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DCD162 #626DDC
analogous
#DC9462 #DCD162 #AADC62
triadic
#DCD162 #62DCD1 #D162DC
tetradic
#DCD162 #62DC94 #626DDC #DC62AA
square
#DCD162 #62DC94 #626DDC #DC62AA
split-complementary
#DCD162 #62AADC #9462DC
monochromatic
#A09524 #D1C230 #DCD162 #E7E094 #F2EEC6

Accessibility & contrast

On white

1.57
#DCD162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.34
#DCD162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DCD162
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DCD162#FFFFFF#000000##000000
##DCD1621.001.5713.3413.34
#FFFFFF1.571.0021.0021.00
#00000013.3421.001.001.00
##00000013.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1CB57
Deuteranopia (green-blind)
#E5D168
Tritanopia (blue-blind)
#EBC5B8
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #dcd162;
/* rgb */ color: rgb(220, 209, 98);
/* oklch */ color: oklch(84.8% 0.133 103.6);
Tailwind
colors: {
  custom: {
    50: '#e9de92',
    500: '#dcd162',
    950: '#000000',
  },
}
SCSS
$custom: #dcd162;
$custom-light: #e9de92;
$custom-dark: #000000;
JSON
{
  "hex": "#dcd162",
  "rgb": {
    "r": 220,
    "g": 209,
    "b": 98
  },
  "hsl": {
    "h": 54.59,
    "s": 63.542,
    "l": 62.353
  },
  "oklch": {
    "l": 0.8478,
    "c": 0.13289,
    "h": 103.6
  },
  "luminance": 0.61698
}

Semantic roles & 50–950 ramp

primary
#DCD162
secondary
#3F48A3
accent
#2ACB1A
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150D
muted
#85847F

Preview Lab

Preview with #DCD162

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

Preview Lab → · Contrast checker → · Palette generator →

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