#D0C542#D0C542

#D0C542 is a light, vivid yellow. Relative luminance 0.537; OKLCH L 80.9% C 0.148 H 104.5°. Best body text is #000000 at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#D0C542
RGBrgb(208, 197, 66)
HSLhsl(55, 60%, 54%)
HSVhsv(55, 68%, 82%)
CMYKcmyk(0%, 5.3%, 68.3%, 18.4%)
CIE-LABlab(78.31, -11.22, 63.99)
CIE-LCHlch(78.31, 64.96, 99.94°)
OKLaboklab(80.92% -0.037 0.1431)
OKLCHoklch(80.92% 0.148 104.5)
XYZxyz(46.9639, 53.7375, 13.0518)
Luminance0.5374 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D0C542 #424DD0
analogous
#D07E42 #D0C542 #94D042
triadic
#D0C542 #42D0C5 #C542D0
tetradic
#D0C542 #42D07E #424DD0 #D04294
square
#D0C542 #42D07E #424DD0 #D04294
split-complementary
#D0C542 #4294D0 #7E42D0
monochromatic
#79721E #AAA02A #D0C542 #DCD473 #E8E3A4

Accessibility & contrast

On white

1.79
#D0C542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.75
#D0C542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D0C542
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D0C542#FFFFFF#000000##000000
##D0C5421.001.7911.7511.75
#FFFFFF1.791.0021.0021.00
#00000011.7521.001.001.00
##00000011.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BE2F
Deuteranopia (green-blind)
#DAC44A
Tritanopia (blue-blind)
#DFB8AB
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d0c542;
/* rgb */ color: rgb(208, 197, 66);
/* oklch */ color: oklch(80.9% 0.148 104.5);
Tailwind
colors: {
  custom: {
    50: '#e2d67e',
    500: '#d0c542',
    950: '#000000',
  },
}
SCSS
$custom: #d0c542;
$custom-light: #e2d67e;
$custom-dark: #000000;
JSON
{
  "hex": "#d0c542",
  "rgb": {
    "r": 208,
    "g": 197,
    "b": 66
  },
  "hsl": {
    "h": 55.352,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.80916,
    "c": 0.14777,
    "h": 104.5
  },
  "luminance": 0.53736
}

Semantic roles & 50–950 ramp

primary
#D0C542
secondary
#353B81
accent
#51E344
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D0C542

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

Preview Lab → · Contrast checker → · Palette generator →

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