#D4B451#D4B451

#D4B451 is a light, vivid yellow. Relative luminance 0.472; OKLCH L 77.9% C 0.123 H 91.4°. Best body text is #000000 at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#D4B451
RGBrgb(212, 180, 81)
HSLhsl(45, 60%, 57%)
HSVhsv(45, 62%, 83%)
CMYKcmyk(0%, 15.1%, 61.8%, 16.9%)
CIE-LABlab(74.34, 0.18, 53.55)
CIE-LCHlch(74.34, 53.55, 89.80°)
OKLaboklab(77.9% -0.0029 0.1231)
OKLCHoklch(77.9% 0.123 91.4)
XYZxyz(44.9599, 47.2361, 14.5323)
Luminance0.4723 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4B451 #5171D4
analogous
#D47351 #D4B451 #B2D451
triadic
#D4B451 #51D4B4 #B451D4
tetradic
#D4B451 #51D473 #5171D4 #D451B2
square
#D4B451 #51D473 #5171D4 #D451B2
split-complementary
#D4B451 #51B2D4 #7351D4
monochromatic
#897022 #BA982E #D4B451 #E0C982 #ECDEB3

Accessibility & contrast

On white

2.01
#D4B451 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.45
#D4B451 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4B451
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4B451#FFFFFF#000000##000000
##D4B4511.002.0110.4510.45
#FFFFFF2.011.0021.0021.00
#00000010.4521.001.001.00
##00000010.4521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d4b451;
/* rgb */ color: rgb(212, 180, 81);
/* oklch */ color: oklch(77.9% 0.123 91.4);
Tailwind
colors: {
  custom: {
    50: '#e4ca85',
    500: '#d4b451',
    950: '#000000',
  },
}
SCSS
$custom: #d4b451;
$custom-light: #e4ca85;
$custom-dark: #000000;
JSON
{
  "hex": "#d4b451",
  "rgb": {
    "r": 212,
    "g": 180,
    "b": 81
  },
  "hsl": {
    "h": 45.344,
    "s": 60.369,
    "l": 57.451
  },
  "oklch": {
    "l": 0.77895,
    "c": 0.12317,
    "h": 91.4
  },
  "luminance": 0.47234
}

Semantic roles & 50–950 ramp

primary
#D4B451
secondary
#A6B3DB
accent
#6BE444
background
#FEFCF8
surface
#FDF8EF
border
#D5D1CA
text
#16130B
muted
#84827C

Preview Lab

Preview with #D4B451

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

Preview Lab → · Contrast checker → · Palette generator →

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