#D5C640#D5C640

#D5C640 is a light, vivid yellow. Relative luminance 0.549; OKLCH L 81.6% C 0.150 H 102.8°. Best body text is #000000 at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#D5C640
RGBrgb(213, 198, 64)
HSLhsl(54, 64%, 54%)
HSVhsv(54, 70%, 84%)
CMYKcmyk(0%, 7%, 70%, 16.5%)
CIE-LABlab(78.99, -9.71, 65.57)
CIE-LCHlch(78.99, 66.28, 98.42°)
OKLaboklab(81.55% -0.0332 0.1459)
OKLCHoklch(81.55% 0.15 102.8)
XYZxyz(48.5622, 54.9065, 12.8895)
Luminance0.5490 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C640 #404FD5
analogous
#D57C40 #D5C640 #99D540
triadic
#D5C640 #40D5C6 #C640D5
tetradic
#D5C640 #40D57C #404FD5 #D54099
square
#D5C640 #40D57C #404FD5 #D54099
split-complementary
#D5C640 #4099D5 #7C40D5
monochromatic
#7F751C #B1A327 #D5C640 #E0D572 #EBE4A4

Accessibility & contrast

On white

1.75
#D5C640 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.98
#D5C640 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C640
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C640#FFFFFF#000000##000000
##D5C6401.001.7511.9811.98
#FFFFFF1.751.0021.0021.00
#00000011.9821.001.001.00
##00000011.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C02B
Deuteranopia (green-blind)
#DCC749
Tritanopia (blue-blind)
#E5B8AB
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d5c640;
/* rgb */ color: rgb(213, 198, 64);
/* oklch */ color: oklch(81.6% 0.150 102.8);
Tailwind
colors: {
  custom: {
    50: '#e6d67d',
    500: '#d5c640',
    950: '#000000',
  },
}
SCSS
$custom: #d5c640;
$custom-light: #e6d67d;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c640",
  "rgb": {
    "r": 213,
    "g": 198,
    "b": 64
  },
  "hsl": {
    "h": 53.96,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.81554,
    "c": 0.14963,
    "h": 102.8
  },
  "luminance": 0.54904
}

Semantic roles & 50–950 ramp

primary
#D5C640
secondary
#333B86
accent
#52E741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D5C640

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

Preview Lab → · Contrast checker → · Palette generator →

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