#DFD97C#DFD97C

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

Color values

HEX#DFD97C
RGBrgb(223, 217, 124)
HSLhsl(56, 61%, 68%)
HSVhsv(56, 44%, 87%)
CMYKcmyk(0%, 2.7%, 44.4%, 12.5%)
CIE-LABlab(85.39, -10.78, 46.35)
CIE-LCHlch(85.39, 47.58, 103.09°)
OKLaboklab(87.03% -0.0305 0.1114)
OKLCHoklch(87.03% 0.116 105.3)
XYZxyz(58.8836, 66.7705, 28.8510)
Luminance0.6677 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFD97C #7C82DF
analogous
#DFA87C #DFD97C #B3DF7C
triadic
#DFD97C #7CDFD9 #D97CDF
tetradic
#DFD97C #7CDFA8 #7C82DF #DF7CB3
square
#DFD97C #7CDFA8 #7C82DF #DF7CB3
split-complementary
#DFD97C #7CB3DF #A87CDF
monochromatic
#B5AC2C #D3CB4B #DFD97C #EBE7AD #F7F6DE

Accessibility & contrast

On white

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

On black

14.35
#DFD97C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFD97C
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFD97C#FFFFFF#000000##000000
##DFD97C1.001.4614.3514.35
#FFFFFF1.461.0021.0021.00
#00000014.3521.001.001.00
##00000014.3521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #dfd97c;
/* rgb */ color: rgb(223, 217, 124);
/* oklch */ color: oklch(87.0% 0.116 105.3);
Tailwind
colors: {
  custom: {
    50: '#ebe4a3',
    500: '#dfd97c',
    950: '#000000',
  },
}
SCSS
$custom: #dfd97c;
$custom-light: #ebe4a3;
$custom-dark: #000000;
JSON
{
  "hex": "#dfd97c",
  "rgb": {
    "r": 223,
    "g": 217,
    "b": 124
  },
  "hsl": {
    "h": 56.364,
    "s": 60.736,
    "l": 68.039
  },
  "oklch": {
    "l": 0.87028,
    "c": 0.1155,
    "h": 105.3
  },
  "luminance": 0.66769
}

Semantic roles & 50–950 ramp

primary
#DFD97C
secondary
#4950B6
accent
#27C81D
background
#FFFEFC
surface
#FEFCF6
border
#D6D5D0
text
#16150F
muted
#858480

Preview Lab

Preview with #DFD97C

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

Preview Lab → · Contrast checker → · Palette generator →

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