#DFC978#DFC978

#DFC978 is a very light, moderate yellow. Relative luminance 0.588; OKLCH L 83.7% C 0.104 H 94.7°. Best body text is #000000 at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#DFC978
RGBrgb(223, 201, 120)
HSLhsl(47, 62%, 67%)
HSVhsv(47, 46%, 87%)
CMYKcmyk(0%, 9.9%, 46.2%, 12.5%)
CIE-LABlab(81.19, -3.01, 43.12)
CIE-LCHlch(81.19, 43.22, 93.99°)
OKLaboklab(83.69% -0.0085 0.1039)
OKLCHoklch(83.69% 0.104 94.7)
XYZxyz(54.7098, 58.8194, 26.2371)
Luminance0.5882 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFC978 #788EDF
analogous
#DF9578 #DFC978 #C2DF78
triadic
#DFC978 #78DFC9 #C978DF
tetradic
#DFC978 #78DF95 #788EDF #DF78C2
square
#DFC978 #78DF95 #788EDF #DF78C2
split-complementary
#DFC978 #78C2DF #9578DF
monochromatic
#B2952A #D3B547 #DFC978 #EBDDA9 #F6F1DB

Accessibility & contrast

On white

1.65
#DFC978 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.76
#DFC978 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFC978
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFC978#FFFFFF#000000##000000
##DFC9781.001.6512.7612.76
#FFFFFF1.651.0021.0021.00
#00000012.7621.001.001.00
##00000012.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C671
Deuteranopia (green-blind)
#DECD7B
Tritanopia (blue-blind)
#EDBEB5
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #dfc978;
/* rgb */ color: rgb(223, 201, 120);
/* oklch */ color: oklch(83.7% 0.104 94.7);
Tailwind
colors: {
  custom: {
    50: '#ebd9a0',
    500: '#dfc978',
    950: '#000000',
  },
}
SCSS
$custom: #dfc978;
$custom-light: #ebd9a0;
$custom-dark: #000000;
JSON
{
  "hex": "#dfc978",
  "rgb": {
    "r": 223,
    "g": 201,
    "b": 120
  },
  "hsl": {
    "h": 47.184,
    "s": 61.677,
    "l": 67.255
  },
  "oklch": {
    "l": 0.83687,
    "c": 0.10427,
    "h": 94.7
  },
  "luminance": 0.58817
}

Semantic roles & 50–950 ramp

primary
#DFC978
secondary
#475FB4
accent
#41C91C
background
#FFFEFC
surface
#FEFBF5
border
#D6D4CF
text
#16140F
muted
#858380

Preview Lab

Preview with #DFC978

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

Preview Lab → · Contrast checker → · Palette generator →

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