#D5C342#D5C342

#D5C342 is a light, vivid yellow. Relative luminance 0.536; OKLCH L 80.9% C 0.146 H 101.2°. Best body text is #000000 at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#D5C342
RGBrgb(213, 195, 66)
HSLhsl(53, 64%, 55%)
HSVhsv(53, 69%, 84%)
CMYKcmyk(0%, 8.5%, 69%, 16.5%)
CIE-LABlab(78.21, -8.07, 64.03)
CIE-LCHlch(78.21, 64.54, 97.19°)
OKLaboklab(80.94% -0.0284 0.143)
OKLCHoklch(80.94% 0.146 101.2)
XYZxyz(47.9412, 53.5718, 12.9683)
Luminance0.5357 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C342 #4254D5
analogous
#D57A42 #D5C342 #9ED542
triadic
#D5C342 #42D5C3 #C342D5
tetradic
#D5C342 #42D57A #4254D5 #D5429E
square
#D5C342 #42D57A #4254D5 #D5429E
split-complementary
#D5C342 #429ED5 #7A42D5
monochromatic
#80741C #B2A128 #D5C342 #E0D374 #EBE3A6

Accessibility & contrast

On white

1.79
#D5C342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.71
#D5C342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C342
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C342#FFFFFF#000000##000000
##D5C3421.001.7911.7111.71
#FFFFFF1.791.0021.0021.00
#00000011.7121.001.001.00
##00000011.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BD2F
Deuteranopia (green-blind)
#DAC54A
Tritanopia (blue-blind)
#E5B5A9
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d5c342;
/* rgb */ color: rgb(213, 195, 66);
/* oklch */ color: oklch(80.9% 0.146 101.2);
Tailwind
colors: {
  custom: {
    50: '#e6d47e',
    500: '#d5c342',
    950: '#000000',
  },
}
SCSS
$custom: #d5c342;
$custom-light: #e6d47e;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c342",
  "rgb": {
    "r": 213,
    "g": 195,
    "b": 66
  },
  "hsl": {
    "h": 52.653,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.80942,
    "c": 0.14579,
    "h": 101.2
  },
  "luminance": 0.5357
}

Semantic roles & 50–950 ramp

primary
#D5C342
secondary
#343E87
accent
#55E741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D5C342

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

Preview Lab → · Contrast checker → · Palette generator →

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