#D0C142#D0C142

#D0C142 is a light, vivid yellow. Relative luminance 0.519; OKLCH L 80.1% C 0.144 H 102.5°. Best body text is #000000 at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#D0C142
RGBrgb(208, 193, 66)
HSLhsl(54, 60%, 54%)
HSVhsv(54, 68%, 82%)
CMYKcmyk(0%, 7.2%, 68.3%, 18.4%)
CIE-LABlab(77.25, -9.18, 62.92)
CIE-LCHlch(77.25, 63.58, 98.30°)
OKLaboklab(80.07% -0.0312 0.1408)
OKLCHoklch(80.07% 0.144 102.5)
XYZxyz(46.0677, 51.9451, 12.7530)
Luminance0.5194 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D0C142 #4251D0
analogous
#D07A42 #D0C142 #98D042
triadic
#D0C142 #42D0C1 #C142D0
tetradic
#D0C142 #42D07A #4251D0 #D04298
square
#D0C142 #42D07A #4251D0 #D04298
split-complementary
#D0C142 #4298D0 #7A42D0
monochromatic
#79701E #AA9D2A #D0C142 #DCD173 #E8E1A4

Accessibility & contrast

On white

1.84
#D0C142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.39
#D0C142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D0C142
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D0C142#FFFFFF#000000##000000
##D0C1421.001.8411.3911.39
#FFFFFF1.841.0021.0021.00
#00000011.3921.001.001.00
##00000011.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BB30
Deuteranopia (green-blind)
#D7C24A
Tritanopia (blue-blind)
#DFB4A7
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d0c142;
/* rgb */ color: rgb(208, 193, 66);
/* oklch */ color: oklch(80.1% 0.144 102.5);
Tailwind
colors: {
  custom: {
    50: '#e2d37d',
    500: '#d0c142',
    950: '#000000',
  },
}
SCSS
$custom: #d0c142;
$custom-light: #e2d37d;
$custom-dark: #000000;
JSON
{
  "hex": "#d0c142",
  "rgb": {
    "r": 208,
    "g": 193,
    "b": 66
  },
  "hsl": {
    "h": 53.662,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.80072,
    "c": 0.14423,
    "h": 102.5
  },
  "luminance": 0.51943
}

Semantic roles & 50–950 ramp

primary
#D0C142
secondary
#353D81
accent
#55E344
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D0C142

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

Preview Lab → · Contrast checker → · Palette generator →

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