#D5C937#D5C937

#D5C937 is a very light, vivid yellow. Relative luminance 0.562; OKLCH L 82.1% C 0.158 H 104.5°. Best body text is #000000 at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#D5C937
RGBrgb(213, 201, 55)
HSLhsl(55, 65%, 53%)
HSVhsv(55, 74%, 84%)
CMYKcmyk(0%, 5.6%, 74.2%, 16.5%)
CIE-LABlab(79.73, -11.64, 69.48)
CIE-LCHlch(79.73, 70.45, 99.51°)
OKLaboklab(82.12% -0.0395 0.1526)
OKLCHoklch(82.12% 0.158 104.5)
XYZxyz(49.0189, 56.1972, 11.8788)
Luminance0.5619 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C937 #3743D5
analogous
#D57A37 #D5C937 #92D537
triadic
#D5C937 #37D5C9 #C937D5
tetradic
#D5C937 #37D57A #3743D5 #D53792
square
#D5C937 #37D57A #3743D5 #D53792
split-complementary
#D5C937 #3792D5 #7A37D5
monochromatic
#787119 #ABA124 #D5C937 #E0D76A #EAE49C

Accessibility & contrast

On white

1.72
#D5C937 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.24
#D5C937 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C937
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C937#FFFFFF#000000##000000
##D5C9371.001.7212.2412.24
#FFFFFF1.721.0021.0021.00
#00000012.2421.001.001.00
##00000012.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC219
Deuteranopia (green-blind)
#DFC942
Tritanopia (blue-blind)
#E5BBAD
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d5c937;
/* rgb */ color: rgb(213, 201, 55);
/* oklch */ color: oklch(82.1% 0.158 104.5);
Tailwind
colors: {
  custom: {
    50: '#e6d979',
    500: '#d5c937',
    950: '#000000',
  },
}
SCSS
$custom: #d5c937;
$custom-light: #e6d979;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c937",
  "rgb": {
    "r": 213,
    "g": 201,
    "b": 55
  },
  "hsl": {
    "h": 55.443,
    "s": 65.289,
    "l": 52.549
  },
  "oklch": {
    "l": 0.82124,
    "c": 0.1576,
    "h": 104.5
  },
  "luminance": 0.56195
}

Semantic roles & 50–950 ramp

primary
#D5C937
secondary
#303680
accent
#4CE840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D5C937

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

Preview Lab → · Contrast checker → · Palette generator →

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