#DFD978#DFD978

#DFD978 is a very light, moderate yellow. Relative luminance 0.667; OKLCH L 87.0% C 0.120 H 105.5°. Best body text is #000000 at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#DFD978
RGBrgb(223, 217, 120)
HSLhsl(57, 62%, 67%)
HSVhsv(57, 46%, 87%)
CMYKcmyk(0%, 2.7%, 46.2%, 12.5%)
CIE-LABlab(85.34, -11.16, 48.23)
CIE-LCHlch(85.34, 49.50, 103.03°)
OKLaboklab(86.97% -0.0319 0.1153)
OKLCHoklch(86.97% 0.12 105.5)
XYZxyz(58.6358, 66.6713, 27.5457)
Luminance0.6667 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFD978 #787EDF
analogous
#DFA678 #DFD978 #B2DF78
triadic
#DFD978 #78DFD9 #D978DF
tetradic
#DFD978 #78DFA6 #787EDF #DF78B2
square
#DFD978 #78DFA6 #787EDF #DF78B2
split-complementary
#DFD978 #78B2DF #A678DF
monochromatic
#B2AA2A #D3CB47 #DFD978 #EBE7A9 #F6F5DB

Accessibility & contrast

On white

1.47
#DFD978 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.33
#DFD978 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFD978
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFD978#FFFFFF#000000##000000
##DFD9781.001.4714.3314.33
#FFFFFF1.471.0021.0021.00
#00000014.3321.001.001.00
##00000014.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D370
Deuteranopia (green-blind)
#EAD77C
Tritanopia (blue-blind)
#ECCEC2
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #dfd978;
/* rgb */ color: rgb(223, 217, 120);
/* oklch */ color: oklch(87.0% 0.120 105.5);
Tailwind
colors: {
  custom: {
    50: '#ebe4a1',
    500: '#dfd978',
    950: '#000000',
  },
}
SCSS
$custom: #dfd978;
$custom-light: #ebe4a1;
$custom-dark: #000000;
JSON
{
  "hex": "#dfd978",
  "rgb": {
    "r": 223,
    "g": 217,
    "b": 120
  },
  "hsl": {
    "h": 56.505,
    "s": 61.677,
    "l": 67.255
  },
  "oklch": {
    "l": 0.86972,
    "c": 0.11965,
    "h": 105.5
  },
  "luminance": 0.6667
}

Semantic roles & 50–950 ramp

primary
#DFD978
secondary
#474EB4
accent
#26C91C
background
#FFFEFC
surface
#FEFCF5
border
#D6D5CF
text
#16150F
muted
#858480

Preview Lab

Preview with #DFD978

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

Preview Lab → · Contrast checker → · Palette generator →

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