#D1C342#D1C342

#D1C342 is a light, vivid yellow. Relative luminance 0.530; OKLCH L 80.6% C 0.146 H 103.1°. Best body text is #000000 at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#D1C342
RGBrgb(209, 195, 66)
HSLhsl(54, 61%, 54%)
HSVhsv(54, 68%, 82%)
CMYKcmyk(0%, 6.7%, 68.4%, 18%)
CIE-LABlab(77.86, -9.77, 63.57)
CIE-LCHlch(77.86, 64.31, 98.74°)
OKLaboklab(80.58% -0.033 0.1422)
OKLCHoklch(80.58% 0.146 103.1)
XYZxyz(46.7949, 52.9808, 12.9146)
Luminance0.5298 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C342 #4250D1
analogous
#D17C42 #D1C342 #98D142
triadic
#D1C342 #42D1C3 #C342D1
tetradic
#D1C342 #42D17C #4250D1 #D14298
square
#D1C342 #42D17C #4250D1 #D14298
split-complementary
#D1C342 #4298D1 #7C42D1
monochromatic
#7B721E #AC9F2A #D1C342 #DDD373 #E9E2A4

Accessibility & contrast

On white

1.81
#D1C342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.60
#D1C342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C342
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C342#FFFFFF#000000##000000
##D1C3421.001.8111.6011.60
#FFFFFF1.811.0021.0021.00
#00000011.6021.001.001.00
##00000011.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BD2F
Deuteranopia (green-blind)
#D9C34A
Tritanopia (blue-blind)
#E0B6A9
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d1c342;
/* rgb */ color: rgb(209, 195, 66);
/* oklch */ color: oklch(80.6% 0.146 103.1);
Tailwind
colors: {
  custom: {
    50: '#e3d47e',
    500: '#d1c342',
    950: '#000000',
  },
}
SCSS
$custom: #d1c342;
$custom-light: #e3d47e;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c342",
  "rgb": {
    "r": 209,
    "g": 195,
    "b": 66
  },
  "hsl": {
    "h": 54.126,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.80582,
    "c": 0.14592,
    "h": 103.1
  },
  "luminance": 0.52979
}

Semantic roles & 50–950 ramp

primary
#D1C342
secondary
#353C83
accent
#54E444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D1C342

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

Preview Lab → · Contrast checker → · Palette generator →

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