#D5C451#D5C451

#D5C451 is a light, vivid yellow. Relative luminance 0.542; OKLCH L 81.3% C 0.136 H 100.9°. Best body text is #000000 at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#D5C451
RGBrgb(213, 196, 81)
HSLhsl(52, 61%, 58%)
HSVhsv(52, 62%, 84%)
CMYKcmyk(0%, 8%, 62%, 16.5%)
CIE-LABlab(78.59, -7.71, 58.24)
CIE-LCHlch(78.59, 58.75, 97.54°)
OKLaboklab(81.28% -0.0257 0.1331)
OKLCHoklch(81.28% 0.136 100.9)
XYZxyz(48.6676, 54.2221, 15.6853)
Luminance0.5422 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C451 #5162D5
analogous
#D58251 #D5C451 #A4D551
triadic
#D5C451 #51D5C4 #C451D5
tetradic
#D5C451 #51D582 #5162D5 #D551A4
square
#D5C451 #51D582 #5162D5 #D551A4
split-complementary
#D5C451 #51A4D5 #8251D5
monochromatic
#8A7D21 #BCA92D #D5C451 #E1D582 #EDE5B4

Accessibility & contrast

On white

1.77
#D5C451 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.84
#D5C451 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C451
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C451#FFFFFF#000000##000000
##D5C4511.001.7711.8411.84
#FFFFFF1.771.0021.0021.00
#00000011.8421.001.001.00
##00000011.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BF44
Deuteranopia (green-blind)
#DAC557
Tritanopia (blue-blind)
#E4B7AB
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d5c451;
/* rgb */ color: rgb(213, 196, 81);
/* oklch */ color: oklch(81.3% 0.136 100.9);
Tailwind
colors: {
  custom: {
    50: '#e5d587',
    500: '#d5c451',
    950: '#000000',
  },
}
SCSS
$custom: #d5c451;
$custom-light: #e5d587;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c451",
  "rgb": {
    "r": 213,
    "g": 196,
    "b": 81
  },
  "hsl": {
    "h": 52.273,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.8128,
    "c": 0.13555,
    "h": 100.9
  },
  "luminance": 0.5422
}

Semantic roles & 50–950 ramp

primary
#D5C451
secondary
#3A4590
accent
#58E444
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140B
muted
#84837E

Preview Lab

Preview with #D5C451

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

Preview Lab → · Contrast checker → · Palette generator →

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