#DFD878#DFD878

#DFD878 is a very light, moderate yellow. Relative luminance 0.662; OKLCH L 86.8% C 0.119 H 104.9°. Best body text is #000000 at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#DFD878
RGBrgb(223, 216, 120)
HSLhsl(56, 62%, 67%)
HSVhsv(56, 46%, 87%)
CMYKcmyk(0%, 3.1%, 46.2%, 12.5%)
CIE-LABlab(85.08, -10.66, 47.91)
CIE-LCHlch(85.08, 49.08, 102.54°)
OKLaboklab(86.77% -0.0305 0.1146)
OKLCHoklch(86.77% 0.119 104.9)
XYZxyz(58.3788, 66.1574, 27.4601)
Luminance0.6616 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFD878 #787FDF
analogous
#DFA478 #DFD878 #B3DF78
triadic
#DFD878 #78DFD8 #D878DF
tetradic
#DFD878 #78DFA4 #787FDF #DF78B3
square
#DFD878 #78DFA4 #787FDF #DF78B3
split-complementary
#DFD878 #78B3DF #A478DF
monochromatic
#B2A92A #D3CA47 #DFD878 #EBE6A9 #F6F5DB

Accessibility & contrast

On white

1.48
#DFD878 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.23
#DFD878 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFD878
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFD878#FFFFFF#000000##000000
##DFD8781.001.4814.2314.23
#FFFFFF1.481.0021.0021.00
#00000014.2321.001.001.00
##00000014.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7D270
Deuteranopia (green-blind)
#EAD77C
Tritanopia (blue-blind)
#ECCDC1
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #dfd878;
/* rgb */ color: rgb(223, 216, 120);
/* oklch */ color: oklch(86.8% 0.119 104.9);
Tailwind
colors: {
  custom: {
    50: '#ebe3a1',
    500: '#dfd878',
    950: '#000000',
  },
}
SCSS
$custom: #dfd878;
$custom-light: #ebe3a1;
$custom-dark: #000000;
JSON
{
  "hex": "#dfd878",
  "rgb": {
    "r": 223,
    "g": 216,
    "b": 120
  },
  "hsl": {
    "h": 55.922,
    "s": 61.677,
    "l": 67.255
  },
  "oklch": {
    "l": 0.86765,
    "c": 0.1186,
    "h": 104.9
  },
  "luminance": 0.66156
}

Semantic roles & 50–950 ramp

primary
#DFD878
secondary
#474FB4
accent
#28C91C
background
#FFFEFC
surface
#FEFCF5
border
#D6D5CF
text
#16150F
muted
#858480

Preview Lab

Preview with #DFD878

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

Preview Lab → · Contrast checker → · Palette generator →

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