#D5B451#D5B451

#D5B451 is a light, vivid yellow. Relative luminance 0.474; OKLCH L 78.0% C 0.123 H 90.8°. Best body text is #000000 at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#D5B451
RGBrgb(213, 180, 81)
HSLhsl(45, 61%, 58%)
HSVhsv(45, 62%, 84%)
CMYKcmyk(0%, 15.5%, 62%, 16.5%)
CIE-LABlab(74.44, 0.61, 53.68)
CIE-LCHlch(74.44, 53.69, 89.35°)
OKLaboklab(77.99% -0.0018 0.1234)
OKLCHoklch(77.99% 0.123 90.8)
XYZxyz(45.2492, 47.3852, 14.5459)
Luminance0.4738 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5B451 #5172D5
analogous
#D57251 #D5B451 #B4D551
triadic
#D5B451 #51D5B4 #B451D5
tetradic
#D5B451 #51D572 #5172D5 #D551B4
square
#D5B451 #51D572 #5172D5 #D551B4
split-complementary
#D5B451 #51B4D5 #7251D5
monochromatic
#8A7021 #BC982D #D5B451 #E1C982 #EDDEB4

Accessibility & contrast

On white

2.00
#D5B451 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.48
#D5B451 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5B451
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5B451#FFFFFF#000000##000000
##D5B4511.002.0010.4810.48
#FFFFFF2.001.0021.0021.00
#00000010.4821.001.001.00
##00000010.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6B246
Deuteranopia (green-blind)
#CEBB55
Tritanopia (blue-blind)
#E5A79E
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #d5b451;
/* rgb */ color: rgb(213, 180, 81);
/* oklch */ color: oklch(78.0% 0.123 90.8);
Tailwind
colors: {
  custom: {
    50: '#e5ca85',
    500: '#d5b451',
    950: '#000000',
  },
}
SCSS
$custom: #d5b451;
$custom-light: #e5ca85;
$custom-dark: #000000;
JSON
{
  "hex": "#d5b451",
  "rgb": {
    "r": 213,
    "g": 180,
    "b": 81
  },
  "hsl": {
    "h": 45,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.77992,
    "c": 0.1234,
    "h": 90.8
  },
  "luminance": 0.47383
}

Semantic roles & 50–950 ramp

primary
#D5B451
secondary
#A6B4DB
accent
#6CE444
background
#FEFCF8
surface
#FDF8EF
border
#D5D1CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #D5B451

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

Preview Lab → · Contrast checker → · Palette generator →

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