#D5C242#D5C242

#D5C242 is a light, vivid yellow. Relative luminance 0.531; OKLCH L 80.7% C 0.145 H 100.7°. Best body text is #000000 at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#D5C242
RGBrgb(213, 194, 66)
HSLhsl(52, 64%, 55%)
HSVhsv(52, 69%, 84%)
CMYKcmyk(0%, 8.9%, 69%, 16.5%)
CIE-LABlab(77.95, -7.56, 63.77)
CIE-LCHlch(77.95, 64.21, 96.76°)
OKLaboklab(80.73% -0.0269 0.1424)
OKLCHoklch(80.73% 0.145 100.7)
XYZxyz(47.7179, 53.1252, 12.8939)
Luminance0.5312 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C242 #4255D5
analogous
#D57942 #D5C242 #9ED542
triadic
#D5C242 #42D5C2 #C242D5
tetradic
#D5C242 #42D579 #4255D5 #D5429E
square
#D5C242 #42D579 #4255D5 #D5429E
split-complementary
#D5C242 #429ED5 #7942D5
monochromatic
#80731C #B2A028 #D5C242 #E0D274 #EBE2A6

Accessibility & contrast

On white

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

On black

11.62
#D5C242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C242
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C242#FFFFFF#000000##000000
##D5C2421.001.8111.6211.62
#FFFFFF1.811.0021.0021.00
#00000011.6221.001.001.00
##00000011.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BC2F
Deuteranopia (green-blind)
#D9C44A
Tritanopia (blue-blind)
#E5B4A8
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d5c242;
/* rgb */ color: rgb(213, 194, 66);
/* oklch */ color: oklch(80.7% 0.145 100.7);
Tailwind
colors: {
  custom: {
    50: '#e6d47e',
    500: '#d5c242',
    950: '#000000',
  },
}
SCSS
$custom: #d5c242;
$custom-light: #e6d47e;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c242",
  "rgb": {
    "r": 213,
    "g": 194,
    "b": 66
  },
  "hsl": {
    "h": 52.245,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.80733,
    "c": 0.14496,
    "h": 100.7
  },
  "luminance": 0.53123
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D5C242

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

Preview Lab → · Contrast checker → · Palette generator →

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