#D1C142#D1C142

#D1C142 is a light, vivid yellow. Relative luminance 0.521; OKLCH L 80.2% C 0.144 H 102.0°. Best body text is #000000 at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#D1C142
RGBrgb(209, 193, 66)
HSLhsl(53, 61%, 54%)
HSVhsv(53, 68%, 82%)
CMYKcmyk(0%, 7.7%, 68.4%, 18%)
CIE-LABlab(77.33, -8.75, 63.03)
CIE-LCHlch(77.33, 63.64, 97.90°)
OKLaboklab(80.16% -0.0301 0.141)
OKLCHoklch(80.16% 0.144 102)
XYZxyz(46.3498, 52.0905, 12.7662)
Luminance0.5209 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C142 #4252D1
analogous
#D17A42 #D1C142 #9AD142
triadic
#D1C142 #42D1C1 #C142D1
tetradic
#D1C142 #42D17A #4252D1 #D1429A
square
#D1C142 #42D17A #4252D1 #D1429A
split-complementary
#D1C142 #429AD1 #7A42D1
monochromatic
#7B701E #AC9D2A #D1C142 #DDD173 #E9E1A4

Accessibility & contrast

On white

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

On black

11.42
#D1C142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C142
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C142#FFFFFF#000000##000000
##D1C1421.001.8411.4211.42
#FFFFFF1.841.0021.0021.00
#00000011.4221.001.001.00
##00000011.4221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d1c142;
/* rgb */ color: rgb(209, 193, 66);
/* oklch */ color: oklch(80.2% 0.144 102.0);
Tailwind
colors: {
  custom: {
    50: '#e3d37d',
    500: '#d1c142',
    950: '#000000',
  },
}
SCSS
$custom: #d1c142;
$custom-light: #e3d37d;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c142",
  "rgb": {
    "r": 209,
    "g": 193,
    "b": 66
  },
  "hsl": {
    "h": 53.287,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.80162,
    "c": 0.14419,
    "h": 102
  },
  "luminance": 0.52089
}

Semantic roles & 50–950 ramp

primary
#D1C142
secondary
#353D83
accent
#56E444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D1C142

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

Preview Lab → · Contrast checker → · Palette generator →

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