#D4B751#D4B751

#D4B751 is a light, vivid yellow. Relative luminance 0.485; OKLCH L 78.5% C 0.125 H 93.4°. Best body text is #000000 at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#D4B751
RGBrgb(212, 183, 81)
HSLhsl(47, 60%, 57%)
HSVhsv(47, 62%, 83%)
CMYKcmyk(0%, 13.7%, 61.8%, 16.9%)
CIE-LABlab(75.11, -1.39, 54.41)
CIE-LCHlch(75.11, 54.43, 91.47°)
OKLaboklab(78.51% -0.0075 0.125)
OKLCHoklch(78.51% 0.125 93.4)
XYZxyz(45.5721, 48.4604, 14.7364)
Luminance0.4846 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4B751 #516ED4
analogous
#D47651 #D4B751 #AFD451
triadic
#D4B751 #51D4B7 #B751D4
tetradic
#D4B751 #51D476 #516ED4 #D451AF
square
#D4B751 #51D476 #516ED4 #D451AF
split-complementary
#D4B751 #51AFD4 #7651D4
monochromatic
#897222 #BA9B2E #D4B751 #E0CB82 #ECE0B3

Accessibility & contrast

On white

1.96
#D4B751 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.69
#D4B751 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4B751
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4B751#FFFFFF#000000##000000
##D4B7511.001.9610.6910.69
#FFFFFF1.961.0021.0021.00
#00000010.6921.001.001.00
##00000010.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B446
Deuteranopia (green-blind)
#D0BD56
Tritanopia (blue-blind)
#E4AAA1
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #d4b751;
/* rgb */ color: rgb(212, 183, 81);
/* oklch */ color: oklch(78.5% 0.125 93.4);
Tailwind
colors: {
  custom: {
    50: '#e4cc86',
    500: '#d4b751',
    950: '#000000',
  },
}
SCSS
$custom: #d4b751;
$custom-light: #e4cc86;
$custom-dark: #000000;
JSON
{
  "hex": "#d4b751",
  "rgb": {
    "r": 212,
    "g": 183,
    "b": 81
  },
  "hsl": {
    "h": 46.718,
    "s": 60.369,
    "l": 57.451
  },
  "oklch": {
    "l": 0.78506,
    "c": 0.12518,
    "h": 93.4
  },
  "luminance": 0.48458
}

Semantic roles & 50–950 ramp

primary
#D4B751
secondary
#A6B2DB
accent
#68E444
background
#FEFCF8
surface
#FDF8F0
border
#D5D1CB
text
#16130B
muted
#84827C

Preview Lab

Preview with #D4B751

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

Preview Lab → · Contrast checker → · Palette generator →

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