#D5C74A#D5C74A

#D5C74A is a light, vivid yellow. Relative luminance 0.555; OKLCH L 81.8% C 0.144 H 102.9°. Best body text is #000000 at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#D5C74A
RGBrgb(213, 199, 74)
HSLhsl(54, 62%, 56%)
HSVhsv(54, 65%, 84%)
CMYKcmyk(0%, 6.6%, 65.3%, 16.5%)
CIE-LABlab(79.32, -9.68, 61.98)
CIE-LCHlch(79.32, 62.73, 98.87°)
OKLaboklab(81.84% -0.0321 0.14)
OKLCHoklch(81.84% 0.144 102.9)
XYZxyz(49.1020, 55.4893, 14.6013)
Luminance0.5549 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C74A #4A58D5
analogous
#D5824A #D5C74A #9ED54A
triadic
#D5C74A #4AD5C7 #C74AD5
tetradic
#D5C74A #4AD582 #4A58D5 #D54A9E
square
#D5C74A #4AD582 #4A58D5 #D54A9E
split-complementary
#D5C74A #4A9ED5 #824AD5
monochromatic
#867B1F #B7A92B #D5C74A #E1D67C #ECE6AD

Accessibility & contrast

On white

1.74
#D5C74A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.10
#D5C74A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C74A
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C74A#FFFFFF#000000##000000
##D5C74A1.001.7412.1012.10
#FFFFFF1.741.0021.0021.00
#00000012.1021.001.001.00
##00000012.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C13A
Deuteranopia (green-blind)
#DDC751
Tritanopia (blue-blind)
#E4BAAD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d5c74a;
/* rgb */ color: rgb(213, 199, 74);
/* oklch */ color: oklch(81.8% 0.144 102.9);
Tailwind
colors: {
  custom: {
    50: '#e5d783',
    500: '#d5c74a',
    950: '#000000',
  },
}
SCSS
$custom: #d5c74a;
$custom-light: #e5d783;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c74a",
  "rgb": {
    "r": 213,
    "g": 199,
    "b": 74
  },
  "hsl": {
    "h": 53.957,
    "s": 62.332,
    "l": 56.275
  },
  "oklch": {
    "l": 0.81843,
    "c": 0.14359,
    "h": 102.9
  },
  "luminance": 0.55487
}

Semantic roles & 50–950 ramp

primary
#D5C74A
secondary
#37408C
accent
#53E542
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D5C74A

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

Preview Lab → · Contrast checker → · Palette generator →

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