#D5C951#D5C951

#D5C951 is a very light, vivid yellow. Relative luminance 0.565; OKLCH L 82.3% C 0.140 H 103.6°. Best body text is #000000 at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#D5C951
RGBrgb(213, 201, 81)
HSLhsl(55, 61%, 58%)
HSVhsv(55, 62%, 84%)
CMYKcmyk(0%, 5.6%, 62%, 16.5%)
CIE-LABlab(79.91, -10.26, 59.67)
CIE-LCHlch(79.91, 60.54, 99.76°)
OKLaboklab(82.33% -0.0329 0.1361)
OKLCHoklch(82.33% 0.14 103.6)
XYZxyz(49.8143, 56.5154, 16.0676)
Luminance0.5651 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C951 #515DD5
analogous
#D58751 #D5C951 #9FD551
triadic
#D5C951 #51D5C9 #C951D5
tetradic
#D5C951 #51D587 #515DD5 #D5519F
square
#D5C951 #51D587 #515DD5 #D5519F
split-complementary
#D5C951 #519FD5 #8751D5
monochromatic
#8A8121 #BCAF2D #D5C951 #E1D882 #EDE8B4

Accessibility & contrast

On white

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

On black

12.30
#D5C951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C951
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C951#FFFFFF#000000##000000
##D5C9511.001.7112.3012.30
#FFFFFF1.711.0021.0021.00
#00000012.3021.001.001.00
##00000012.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC343
Deuteranopia (green-blind)
#DEC958
Tritanopia (blue-blind)
#E4BCB0
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d5c951;
/* rgb */ color: rgb(213, 201, 81);
/* oklch */ color: oklch(82.3% 0.140 103.6);
Tailwind
colors: {
  custom: {
    50: '#e5d987',
    500: '#d5c951',
    950: '#000000',
  },
}
SCSS
$custom: #d5c951;
$custom-light: #e5d987;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c951",
  "rgb": {
    "r": 213,
    "g": 201,
    "b": 81
  },
  "hsl": {
    "h": 54.545,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.82325,
    "c": 0.14005,
    "h": 103.6
  },
  "luminance": 0.56514
}

Semantic roles & 50–950 ramp

primary
#D5C951
secondary
#3A4290
accent
#52E444
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D5C951

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

Preview Lab → · Contrast checker → · Palette generator →

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