#D4C751#D4C751

#D4C751 is a light, vivid yellow. Relative luminance 0.554; OKLCH L 81.8% C 0.138 H 103.0°. Best body text is #000000 at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#D4C751
RGBrgb(212, 199, 81)
HSLhsl(54, 60%, 57%)
HSVhsv(54, 62%, 83%)
CMYKcmyk(0%, 6.1%, 61.8%, 16.9%)
CIE-LABlab(79.29, -9.66, 58.98)
CIE-LCHlch(79.29, 59.77, 99.30°)
OKLaboklab(81.82% -0.0312 0.1347)
OKLCHoklch(81.82% 0.138 103)
XYZxyz(49.0618, 55.4398, 15.8996)
Luminance0.5544 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C751 #515ED4
analogous
#D48651 #D4C751 #9FD451
triadic
#D4C751 #51D4C7 #C751D4
tetradic
#D4C751 #51D486 #515ED4 #D4519F
square
#D4C751 #51D486 #515ED4 #D4519F
split-complementary
#D4C751 #519FD4 #8651D4
monochromatic
#897F22 #BAAC2E #D4C751 #E0D782 #ECE7B3

Accessibility & contrast

On white

1.74
#D4C751 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.09
#D4C751 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C751
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C751#FFFFFF#000000##000000
##D4C7511.001.7412.0912.09
#FFFFFF1.741.0021.0021.00
#00000012.0921.001.001.00
##00000012.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C143
Deuteranopia (green-blind)
#DCC758
Tritanopia (blue-blind)
#E3BAAE
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d4c751;
/* rgb */ color: rgb(212, 199, 81);
/* oklch */ color: oklch(81.8% 0.138 103.0);
Tailwind
colors: {
  custom: {
    50: '#e4d787',
    500: '#d4c751',
    950: '#000000',
  },
}
SCSS
$custom: #d4c751;
$custom-light: #e4d787;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c751",
  "rgb": {
    "r": 212,
    "g": 199,
    "b": 81
  },
  "hsl": {
    "h": 54.046,
    "s": 60.369,
    "l": 57.451
  },
  "oklch": {
    "l": 0.81818,
    "c": 0.13825,
    "h": 103
  },
  "luminance": 0.55438
}

Semantic roles & 50–950 ramp

primary
#D4C751
secondary
#3A438F
accent
#54E444
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D4C751

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

Preview Lab → · Contrast checker → · Palette generator →

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