#D5C751#D5C751

#D5C751 is a light, vivid yellow. Relative luminance 0.556; OKLCH L 81.9% C 0.138 H 102.6°. Best body text is #000000 at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#D5C751
RGBrgb(213, 199, 81)
HSLhsl(54, 61%, 58%)
HSVhsv(54, 62%, 84%)
CMYKcmyk(0%, 6.6%, 62%, 16.5%)
CIE-LABlab(79.38, -9.24, 59.10)
CIE-LCHlch(79.38, 59.82, 98.89°)
OKLaboklab(81.91% -0.0301 0.1349)
OKLCHoklch(81.91% 0.138 102.6)
XYZxyz(49.3511, 55.5890, 15.9132)
Luminance0.5559 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C751 #515FD5
analogous
#D58551 #D5C751 #A1D551
triadic
#D5C751 #51D5C7 #C751D5
tetradic
#D5C751 #51D585 #515FD5 #D551A1
square
#D5C751 #51D585 #515FD5 #D551A1
split-complementary
#D5C751 #51A1D5 #8551D5
monochromatic
#8A7F21 #BCAC2D #D5C751 #E1D782 #EDE7B4

Accessibility & contrast

On white

1.73
#D5C751 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.12
#D5C751 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C751
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C751#FFFFFF#000000##000000
##D5C7511.001.7312.1212.12
#FFFFFF1.731.0021.0021.00
#00000012.1221.001.001.00
##00000012.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C143
Deuteranopia (green-blind)
#DCC857
Tritanopia (blue-blind)
#E4BAAE
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d5c751;
/* rgb */ color: rgb(213, 199, 81);
/* oklch */ color: oklch(81.9% 0.138 102.6);
Tailwind
colors: {
  custom: {
    50: '#e5d787',
    500: '#d5c751',
    950: '#000000',
  },
}
SCSS
$custom: #d5c751;
$custom-light: #e5d787;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c751",
  "rgb": {
    "r": 213,
    "g": 199,
    "b": 81
  },
  "hsl": {
    "h": 53.636,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.81906,
    "c": 0.13822,
    "h": 102.6
  },
  "luminance": 0.55587
}

Semantic roles & 50–950 ramp

primary
#D5C751
secondary
#3A4390
accent
#55E444
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D5C751

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

Preview Lab → · Contrast checker → · Palette generator →

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