#DFD97D#DFD97D

#DFD97D is a very light, moderate yellow. Relative luminance 0.668; OKLCH L 87.0% C 0.114 H 105.3°. Best body text is #000000 at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#DFD97D
RGBrgb(223, 217, 125)
HSLhsl(56, 60%, 68%)
HSVhsv(56, 44%, 87%)
CMYKcmyk(0%, 2.7%, 43.9%, 12.5%)
CIE-LABlab(85.40, -10.68, 45.88)
CIE-LCHlch(85.40, 47.10, 103.10°)
OKLaboklab(87.04% -0.0301 0.1104)
OKLCHoklch(87.04% 0.114 105.3)
XYZxyz(58.9472, 66.7959, 29.1858)
Luminance0.6679 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFD97D #7D83DF
analogous
#DFA87D #DFD97D #B4DF7D
triadic
#DFD97D #7DDFD9 #D97DDF
tetradic
#DFD97D #7DDFA8 #7D83DF #DF7DB4
square
#DFD97D #7DDFA8 #7D83DF #DF7DB4
split-complementary
#DFD97D #7DB4DF #A87DDF
monochromatic
#B5AD2D #D3CB4C #DFD97D #EBE7AE #F7F6DF

Accessibility & contrast

On white

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

On black

14.36
#DFD97D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFD97D
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFD97D#FFFFFF#000000##000000
##DFD97D1.001.4614.3614.36
#FFFFFF1.461.0021.0021.00
#00000014.3621.001.001.00
##00000014.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7D375
Deuteranopia (green-blind)
#EAD781
Tritanopia (blue-blind)
#ECCEC3
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #dfd97d;
/* rgb */ color: rgb(223, 217, 125);
/* oklch */ color: oklch(87.0% 0.114 105.3);
Tailwind
colors: {
  custom: {
    50: '#eae4a4',
    500: '#dfd97d',
    950: '#000000',
  },
}
SCSS
$custom: #dfd97d;
$custom-light: #eae4a4;
$custom-dark: #000000;
JSON
{
  "hex": "#dfd97d",
  "rgb": {
    "r": 223,
    "g": 217,
    "b": 125
  },
  "hsl": {
    "h": 56.327,
    "s": 60.494,
    "l": 68.235
  },
  "oklch": {
    "l": 0.87043,
    "c": 0.11445,
    "h": 105.3
  },
  "luminance": 0.66794
}

Semantic roles & 50–950 ramp

primary
#DFD97D
secondary
#4A51B6
accent
#28C81D
background
#FFFEFC
surface
#FEFCF6
border
#D6D5D0
text
#16150F
muted
#858480

Preview Lab

Preview with #DFD97D

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

Preview Lab → · Contrast checker → · Palette generator →

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