#D5C74D#D5C74D

#D5C74D is a light, vivid yellow. Relative luminance 0.555; OKLCH L 81.9% C 0.141 H 102.8°. Best body text is #000000 at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#D5C74D
RGBrgb(213, 199, 77)
HSLhsl(54, 62%, 57%)
HSVhsv(54, 64%, 84%)
CMYKcmyk(0%, 6.6%, 63.8%, 16.5%)
CIE-LABlab(79.35, -9.50, 60.76)
CIE-LCHlch(79.35, 61.50, 98.88°)
OKLaboklab(81.87% -0.0312 0.1379)
OKLCHoklch(81.87% 0.141 102.8)
XYZxyz(49.2055, 55.5307, 15.1464)
Luminance0.5553 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C74D #4D5BD5
analogous
#D5834D #D5C74D #9FD54D
triadic
#D5C74D #4DD5C7 #C74DD5
tetradic
#D5C74D #4DD583 #4D5BD5 #D54D9F
square
#D5C74D #4DD583 #4D5BD5 #D54D9F
split-complementary
#D5C74D #4D9FD5 #834DD5
monochromatic
#887D20 #B9AB2C #D5C74D #E1D77F #ECE6B0

Accessibility & contrast

On white

1.73
#D5C74D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.11
#D5C74D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C74D
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C74D#FFFFFF#000000##000000
##D5C74D1.001.7312.1112.11
#FFFFFF1.731.0021.0021.00
#00000012.1121.001.001.00
##00000012.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C13E
Deuteranopia (green-blind)
#DCC754
Tritanopia (blue-blind)
#E4BAAD
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d5c74d;
/* rgb */ color: rgb(213, 199, 77);
/* oklch */ color: oklch(81.9% 0.141 102.8);
Tailwind
colors: {
  custom: {
    50: '#e5d784',
    500: '#d5c74d',
    950: '#000000',
  },
}
SCSS
$custom: #d5c74d;
$custom-light: #e5d784;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c74d",
  "rgb": {
    "r": 213,
    "g": 199,
    "b": 77
  },
  "hsl": {
    "h": 53.824,
    "s": 61.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.81869,
    "c": 0.14134,
    "h": 102.8
  },
  "luminance": 0.55529
}

Semantic roles & 50–950 ramp

primary
#D5C74D
secondary
#38418E
accent
#54E543
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D5C74D

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

Preview Lab → · Contrast checker → · Palette generator →

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