#DFD987#DFD987

#DFD987 is a very light, moderate yellow. Relative luminance 0.671; OKLCH L 87.2% C 0.104 H 104.7°. Best body text is #000000 at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#DFD987
RGBrgb(223, 217, 135)
HSLhsl(56, 58%, 70%)
HSVhsv(56, 39%, 87%)
CMYKcmyk(0%, 2.7%, 39.5%, 12.5%)
CIE-LABlab(85.54, -9.65, 41.10)
CIE-LCHlch(85.54, 42.22, 103.21°)
OKLaboklab(87.19% -0.0263 0.1002)
OKLCHoklch(87.19% 0.104 104.7)
XYZxyz(59.6184, 67.0644, 32.7211)
Luminance0.6706 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFD987 #878DDF
analogous
#DFAD87 #DFD987 #B9DF87
triadic
#DFD987 #87DFD9 #D987DF
tetradic
#DFD987 #87DFAD #878DDF #DF87B9
square
#DFD987 #87DFAD #878DDF #DF87B9
split-complementary
#DFD987 #87B9DF #AD87DF
monochromatic
#BAB132 #D2CA57 #DFD987 #ECE8B7 #F9F7E7

Accessibility & contrast

On white

1.46
#DFD987 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.41
#DFD987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFD987
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFD987#FFFFFF#000000##000000
##DFD9871.001.4614.4114.41
#FFFFFF1.461.0021.0021.00
#00000014.4121.001.001.00
##00000014.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6D381
Deuteranopia (green-blind)
#E9D88A
Tritanopia (blue-blind)
#EBCFC5
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #dfd987;
/* rgb */ color: rgb(223, 217, 135);
/* oklch */ color: oklch(87.2% 0.104 104.7);
Tailwind
colors: {
  custom: {
    50: '#eae4ab',
    500: '#dfd987',
    950: '#000000',
  },
}
SCSS
$custom: #dfd987;
$custom-light: #eae4ab;
$custom-dark: #000000;
JSON
{
  "hex": "#dfd987",
  "rgb": {
    "r": 223,
    "g": 217,
    "b": 135
  },
  "hsl": {
    "h": 55.909,
    "s": 57.895,
    "l": 70.196
  },
  "oklch": {
    "l": 0.87194,
    "c": 0.10362,
    "h": 104.7
  },
  "luminance": 0.67063
}

Semantic roles & 50–950 ramp

primary
#DFD987
secondary
#545AB7
accent
#2BC520
background
#FFFEFD
surface
#FEFCF7
border
#D6D5D0
text
#161510
muted
#858481

Preview Lab

Preview with #DFD987

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

Preview Lab → · Contrast checker → · Palette generator →

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