#D0C840#D0C840

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

Color values

HEX#D0C840
RGBrgb(208, 200, 64)
HSLhsl(57, 61%, 53%)
HSVhsv(57, 69%, 82%)
CMYKcmyk(0%, 3.8%, 69.2%, 18.4%)
CIE-LABlab(79.09, -12.84, 65.53)
CIE-LCHlch(79.09, 66.78, 101.08°)
OKLaboklab(81.54% -0.0418 0.146)
OKLCHoklch(81.54% 0.152 106)
XYZxyz(47.5940, 55.0903, 12.9760)
Luminance0.5509 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D0C840 #4048D0
analogous
#D08040 #D0C840 #90D040
triadic
#D0C840 #40D0C8 #C840D0
tetradic
#D0C840 #40D080 #4048D0 #D04090
square
#D0C840 #40D080 #4048D0 #D04090
split-complementary
#D0C840 #4090D0 #8040D0
monochromatic
#78731E #A9A22A #D0C840 #DCD671 #E8E4A2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D0C840#FFFFFF#000000##000000
##D0C8401.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)
#D9C12B
Deuteranopia (green-blind)
#DCC649
Tritanopia (blue-blind)
#DFBBAD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d0c840;
/* rgb */ color: rgb(208, 200, 64);
/* oklch */ color: oklch(81.5% 0.152 106.0);
Tailwind
colors: {
  custom: {
    50: '#e2d87d',
    500: '#d0c840',
    950: '#000000',
  },
}
SCSS
$custom: #d0c840;
$custom-light: #e2d87d;
$custom-dark: #000000;
JSON
{
  "hex": "#d0c840",
  "rgb": {
    "r": 208,
    "g": 200,
    "b": 64
  },
  "hsl": {
    "h": 56.667,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.81536,
    "c": 0.15185,
    "h": 106
  },
  "luminance": 0.55089
}

Semantic roles & 50–950 ramp

primary
#D0C840
secondary
#343880
accent
#4DE444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D0C840

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

Preview Lab → · Contrast checker → · Palette generator →

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