#D5C940#D5C940

#D5C940 is a very light, vivid yellow. Relative luminance 0.563; OKLCH L 82.2% C 0.152 H 104.3°. Best body text is #000000 at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#D5C940
RGBrgb(213, 201, 64)
HSLhsl(55, 64%, 54%)
HSVhsv(55, 70%, 84%)
CMYKcmyk(0%, 5.6%, 70%, 16.5%)
CIE-LABlab(79.78, -11.23, 66.35)
CIE-LCHlch(79.78, 67.30, 99.61°)
OKLaboklab(82.18% -0.0375 0.1475)
OKLCHoklch(82.18% 0.152 104.3)
XYZxyz(49.2547, 56.2915, 13.1204)
Luminance0.5629 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C940 #404CD5
analogous
#D57F40 #D5C940 #97D540
triadic
#D5C940 #40D5C9 #C940D5
tetradic
#D5C940 #40D57F #404CD5 #D54097
square
#D5C940 #40D57F #404CD5 #D54097
split-complementary
#D5C940 #4097D5 #7F40D5
monochromatic
#7F771C #B1A627 #D5C940 #E0D772 #EBE5A4

Accessibility & contrast

On white

1.71
#D5C940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.26
#D5C940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C940
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C940#FFFFFF#000000##000000
##D5C9401.001.7112.2612.26
#FFFFFF1.711.0021.0021.00
#00000012.2621.001.001.00
##00000012.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC22A
Deuteranopia (green-blind)
#DFC949
Tritanopia (blue-blind)
#E5BBAE
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d5c940;
/* rgb */ color: rgb(213, 201, 64);
/* oklch */ color: oklch(82.2% 0.152 104.3);
Tailwind
colors: {
  custom: {
    50: '#e6d97d',
    500: '#d5c940',
    950: '#000000',
  },
}
SCSS
$custom: #d5c940;
$custom-light: #e6d97d;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c940",
  "rgb": {
    "r": 213,
    "g": 201,
    "b": 64
  },
  "hsl": {
    "h": 55.168,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.82184,
    "c": 0.15225,
    "h": 104.3
  },
  "luminance": 0.5629
}

Semantic roles & 50–950 ramp

primary
#D5C940
secondary
#333A86
accent
#4EE741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D5C940

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

Preview Lab → · Contrast checker → · Palette generator →

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