#D5C142#D5C142

#D5C142 is a light, vivid yellow. Relative luminance 0.527; OKLCH L 80.5% C 0.144 H 100.2°. Best body text is #000000 at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#D5C142
RGBrgb(213, 193, 66)
HSLhsl(52, 64%, 55%)
HSVhsv(52, 69%, 84%)
CMYKcmyk(0%, 9.4%, 69%, 16.5%)
CIE-LABlab(77.69, -7.05, 63.50)
CIE-LCHlch(77.69, 63.89, 96.33°)
OKLaboklab(80.53% -0.0255 0.1419)
OKLCHoklch(80.53% 0.144 100.2)
XYZxyz(47.4960, 52.6816, 12.8200)
Luminance0.5268 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C142 #4256D5
analogous
#D57842 #D5C142 #9FD542
triadic
#D5C142 #42D5C1 #C142D5
tetradic
#D5C142 #42D578 #4256D5 #D5429F
square
#D5C142 #42D578 #4256D5 #D5429F
split-complementary
#D5C142 #429FD5 #7842D5
monochromatic
#80731C #B29F28 #D5C142 #E0D174 #EBE2A6

Accessibility & contrast

On white

1.82
#D5C142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.54
#D5C142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C142
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C142#FFFFFF#000000##000000
##D5C1421.001.8211.5411.54
#FFFFFF1.821.0021.0021.00
#00000011.5421.001.001.00
##00000011.5421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d5c142;
/* rgb */ color: rgb(213, 193, 66);
/* oklch */ color: oklch(80.5% 0.144 100.2);
Tailwind
colors: {
  custom: {
    50: '#e6d37e',
    500: '#d5c142',
    950: '#000000',
  },
}
SCSS
$custom: #d5c142;
$custom-light: #e6d37e;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c142",
  "rgb": {
    "r": 213,
    "g": 193,
    "b": 66
  },
  "hsl": {
    "h": 51.837,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.80525,
    "c": 0.14415,
    "h": 100.2
  },
  "luminance": 0.52679
}

Semantic roles & 50–950 ramp

primary
#D5C142
secondary
#343F87
accent
#58E741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D5C142

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

Preview Lab → · Contrast checker → · Palette generator →

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