#D0C842#D0C842

#D0C842 is a light, vivid yellow. Relative luminance 0.551; OKLCH L 81.6% C 0.151 H 105.9°. Best body text is #000000 at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#D0C842
RGBrgb(208, 200, 66)
HSLhsl(57, 60%, 54%)
HSVhsv(57, 68%, 82%)
CMYKcmyk(0%, 3.8%, 68.3%, 18.4%)
CIE-LABlab(79.11, -12.73, 64.79)
CIE-LCHlch(79.11, 66.03, 101.12°)
OKLaboklab(81.55% -0.0413 0.1448)
OKLCHoklch(81.55% 0.151 105.9)
XYZxyz(47.6519, 55.1135, 13.2811)
Luminance0.5511 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D0C842 #424AD0
analogous
#D08142 #D0C842 #91D042
triadic
#D0C842 #42D0C8 #C842D0
tetradic
#D0C842 #42D081 #424AD0 #D04291
square
#D0C842 #42D081 #424AD0 #D04291
split-complementary
#D0C842 #4291D0 #8142D0
monochromatic
#79741E #AAA32A #D0C842 #DCD673 #E8E5A4

Accessibility & contrast

On white

1.75
#D0C842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.02
#D0C842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D0C842
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D0C842#FFFFFF#000000##000000
##D0C8421.001.7512.0212.02
#FFFFFF1.751.0021.0021.00
#00000012.0221.001.001.00
##00000012.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C12E
Deuteranopia (green-blind)
#DCC64B
Tritanopia (blue-blind)
#DFBBAD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d0c842;
/* rgb */ color: rgb(208, 200, 66);
/* oklch */ color: oklch(81.6% 0.151 105.9);
Tailwind
colors: {
  custom: {
    50: '#e2d87e',
    500: '#d0c842',
    950: '#000000',
  },
}
SCSS
$custom: #d0c842;
$custom-light: #e2d87e;
$custom-dark: #000000;
JSON
{
  "hex": "#d0c842",
  "rgb": {
    "r": 208,
    "g": 200,
    "b": 66
  },
  "hsl": {
    "h": 56.62,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.81551,
    "c": 0.15053,
    "h": 105.9
  },
  "luminance": 0.55112
}

Semantic roles & 50–950 ramp

primary
#D0C842
secondary
#353981
accent
#4DE344
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D0C842

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

Preview Lab → · Contrast checker → · Palette generator →

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