#D1C042#D1C042

#D1C042 is a light, vivid yellow. Relative luminance 0.516; OKLCH L 80.0% C 0.143 H 101.5°. Best body text is #000000 at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#D1C042
RGBrgb(209, 192, 66)
HSLhsl(53, 61%, 54%)
HSVhsv(53, 68%, 82%)
CMYKcmyk(0%, 8.1%, 68.4%, 18%)
CIE-LABlab(77.07, -8.24, 62.77)
CIE-LCHlch(77.07, 63.31, 97.48°)
OKLaboklab(79.95% -0.0286 0.1405)
OKLCHoklch(79.95% 0.143 101.5)
XYZxyz(46.1295, 51.6499, 12.6928)
Luminance0.5165 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C042 #4253D1
analogous
#D17942 #D1C042 #9BD142
triadic
#D1C042 #42D1C0 #C042D1
tetradic
#D1C042 #42D179 #4253D1 #D1429B
square
#D1C042 #42D179 #4253D1 #D1429B
split-complementary
#D1C042 #429BD1 #7942D1
monochromatic
#7B701E #AC9C2A #D1C042 #DDD073 #E9E1A4

Accessibility & contrast

On white

1.85
#D1C042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.33
#D1C042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C042
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C042#FFFFFF#000000##000000
##D1C0421.001.8511.3311.33
#FFFFFF1.851.0021.0021.00
#00000011.3321.001.001.00
##00000011.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA30
Deuteranopia (green-blind)
#D6C14A
Tritanopia (blue-blind)
#E1B3A7
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #d1c042;
/* rgb */ color: rgb(209, 192, 66);
/* oklch */ color: oklch(80.0% 0.143 101.5);
Tailwind
colors: {
  custom: {
    50: '#e3d27d',
    500: '#d1c042',
    950: '#000000',
  },
}
SCSS
$custom: #d1c042;
$custom-light: #e3d27d;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c042",
  "rgb": {
    "r": 209,
    "g": 192,
    "b": 66
  },
  "hsl": {
    "h": 52.867,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.79953,
    "c": 0.14334,
    "h": 101.5
  },
  "luminance": 0.51648
}

Semantic roles & 50–950 ramp

primary
#D1C042
secondary
#353E83
accent
#57E444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D1C042

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

Preview Lab → · Contrast checker → · Palette generator →

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