#D1C840#D1C840

#D1C840 is a light, vivid yellow. Relative luminance 0.552; OKLCH L 81.6% C 0.152 H 105.5°. Best body text is #000000 at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#D1C840
RGBrgb(209, 200, 64)
HSLhsl(56, 61%, 54%)
HSVhsv(56, 69%, 82%)
CMYKcmyk(0%, 4.3%, 69.4%, 18%)
CIE-LABlab(79.18, -12.42, 65.64)
CIE-LCHlch(79.18, 66.81, 100.71°)
OKLaboklab(81.62% -0.0406 0.1462)
OKLCHoklch(81.62% 0.152 105.5)
XYZxyz(47.8761, 55.2358, 12.9892)
Luminance0.5523 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C840 #4049D1
analogous
#D17F40 #D1C840 #91D140
triadic
#D1C840 #40D1C8 #C840D1
tetradic
#D1C840 #40D17F #4049D1 #D14091
square
#D1C840 #40D17F #4049D1 #D14091
split-complementary
#D1C840 #4091D1 #7F40D1
monochromatic
#79741D #ABA329 #D1C840 #DDD671 #E9E4A3

Accessibility & contrast

On white

1.74
#D1C840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.05
#D1C840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C840
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C840#FFFFFF#000000##000000
##D1C8401.001.7412.0512.05
#FFFFFF1.741.0021.0021.00
#00000012.0521.001.001.00
##00000012.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C12B
Deuteranopia (green-blind)
#DDC749
Tritanopia (blue-blind)
#E0BBAD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d1c840;
/* rgb */ color: rgb(209, 200, 64);
/* oklch */ color: oklch(81.6% 0.152 105.5);
Tailwind
colors: {
  custom: {
    50: '#e3d87d',
    500: '#d1c840',
    950: '#000000',
  },
}
SCSS
$custom: #d1c840;
$custom-light: #e3d87d;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c840",
  "rgb": {
    "r": 209,
    "g": 200,
    "b": 64
  },
  "hsl": {
    "h": 56.276,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.81623,
    "c": 0.15173,
    "h": 105.5
  },
  "luminance": 0.55234
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D1C840

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

Preview Lab → · Contrast checker → · Palette generator →

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