#DFC987#DFC987

#DFC987 is a very light, moderate yellow. Relative luminance 0.592; OKLCH L 83.9% C 0.088 H 91.7°. Best body text is #000000 at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#DFC987
RGBrgb(223, 201, 135)
HSLhsl(45, 58%, 70%)
HSVhsv(45, 39%, 87%)
CMYKcmyk(0%, 9.9%, 39.5%, 12.5%)
CIE-LABlab(81.41, -1.47, 35.79)
CIE-LCHlch(81.41, 35.82, 92.34°)
OKLaboklab(83.93% -0.0027 0.0881)
OKLCHoklch(83.93% 0.088 91.7)
XYZxyz(55.6925, 59.2125, 31.4125)
Luminance0.5921 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFC987 #879DDF
analogous
#DF9D87 #DFC987 #C9DF87
triadic
#DFC987 #87DFC9 #C987DF
tetradic
#DFC987 #87DF9D #879DDF #DF87C9
square
#DFC987 #87DF9D #879DDF #DF87C9
split-complementary
#DFC987 #87C9DF #9D87DF
monochromatic
#BA9832 #D2B357 #DFC987 #ECDFB7 #F9F4E7

Accessibility & contrast

On white

1.64
#DFC987 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.84
#DFC987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFC987
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFC987#FFFFFF#000000##000000
##DFC9871.001.6412.8412.84
#FFFFFF1.641.0021.0021.00
#00000012.8421.001.001.00
##00000012.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C682
Deuteranopia (green-blind)
#DCCD89
Tritanopia (blue-blind)
#ECBFB8
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #dfc987;
/* rgb */ color: rgb(223, 201, 135);
/* oklch */ color: oklch(83.9% 0.088 91.7);
Tailwind
colors: {
  custom: {
    50: '#ead9aa',
    500: '#dfc987',
    950: '#000000',
  },
}
SCSS
$custom: #dfc987;
$custom-light: #ead9aa;
$custom-dark: #000000;
JSON
{
  "hex": "#dfc987",
  "rgb": {
    "r": 223,
    "g": 201,
    "b": 135
  },
  "hsl": {
    "h": 45,
    "s": 57.895,
    "l": 70.196
  },
  "oklch": {
    "l": 0.83928,
    "c": 0.0881,
    "h": 91.7
  },
  "luminance": 0.59211
}

Semantic roles & 50–950 ramp

primary
#DFC987
secondary
#546CB7
accent
#49C520
background
#FFFEFD
surface
#FEFBF7
border
#D6D4D0
text
#161410
muted
#858381

Preview Lab

Preview with #DFC987

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

Preview Lab → · Contrast checker → · Palette generator →

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