#D4D397#D4D397

#D4D397 is a very light, moderate yellow. Relative luminance 0.628; OKLCH L 85.3% C 0.078 H 107.1°. Best body text is #000000 at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#D4D397
RGBrgb(212, 211, 151)
HSLhsl(59, 41%, 71%)
HSVhsv(59, 29%, 83%)
CMYKcmyk(0%, 0.5%, 28.8%, 16.9%)
CIE-LABlab(83.35, -8.98, 29.93)
CIE-LCHlch(83.35, 31.25, 106.70°)
OKLaboklab(85.33% -0.0231 0.0749)
OKLCHoklch(85.33% 0.078 107.1)
XYZxyz(56.0318, 62.8209, 38.4461)
Luminance0.6282 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4D397 #9798D4
analogous
#D4B497 #D4D397 #B6D497
triadic
#D4D397 #97D4D3 #D397D4
tetradic
#D4D397 #97D4B4 #9798D4 #D497B6
square
#D4D397 #97D4B4 #9798D4 #D497B6
split-complementary
#D4D397 #97B6D4 #B497D4
monochromatic
#AAA946 #C2C16C #D4D397 #E6E5C2 #F6F6E9

Accessibility & contrast

On white

1.55
#D4D397 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.56
#D4D397 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4D397
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4D397#FFFFFF#000000##000000
##D4D3971.001.5513.5613.56
#FFFFFF1.551.0021.0021.00
#00000013.5621.001.001.00
##00000013.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDCE93
Deuteranopia (green-blind)
#DED199
Tritanopia (blue-blind)
#DDCBC3
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #d4d397;
/* rgb */ color: rgb(212, 211, 151);
/* oklch */ color: oklch(85.3% 0.078 107.1);
Tailwind
colors: {
  custom: {
    50: '#e2e0b6',
    500: '#d4d397',
    950: '#000000',
  },
}
SCSS
$custom: #d4d397;
$custom-light: #e2e0b6;
$custom-dark: #000000;
JSON
{
  "hex": "#d4d397",
  "rgb": {
    "r": 212,
    "g": 211,
    "b": 151
  },
  "hsl": {
    "h": 59.016,
    "s": 41.497,
    "l": 71.176
  },
  "oklch": {
    "l": 0.85328,
    "c": 0.07837,
    "h": 107.1
  },
  "luminance": 0.6282
}

Semantic roles & 50–950 ramp

primary
#D4D397
secondary
#6566AA
accent
#33B531
background
#FEFEFD
surface
#FCFCF8
border
#D5D5D1
text
#151511
muted
#848481

Preview Lab

Preview with #D4D397

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

Preview Lab → · Contrast checker → · Palette generator →

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