#DFD97B#DFD97B

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

Color values

HEX#DFD97B
RGBrgb(223, 217, 123)
HSLhsl(56, 61%, 68%)
HSVhsv(56, 45%, 87%)
CMYKcmyk(0%, 2.7%, 44.8%, 12.5%)
CIE-LABlab(85.38, -10.87, 46.82)
CIE-LCHlch(85.38, 48.07, 103.07°)
OKLaboklab(87.01% -0.0308 0.1124)
OKLCHoklch(87.01% 0.117 105.3)
XYZxyz(58.8207, 66.7453, 28.5197)
Luminance0.6674 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFD97B #7B81DF
analogous
#DFA77B #DFD97B #B3DF7B
triadic
#DFD97B #7BDFD9 #D97BDF
tetradic
#DFD97B #7BDFA7 #7B81DF #DF7BB3
square
#DFD97B #7BDFA7 #7B81DF #DF7BB3
split-complementary
#DFD97B #7BB3DF #A77BDF
monochromatic
#B4AC2C #D3CB4A #DFD97B #EBE7AC #F7F5DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##DFD97B#FFFFFF#000000##000000
##DFD97B1.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)
#E7D373
Deuteranopia (green-blind)
#EAD77F
Tritanopia (blue-blind)
#ECCEC3
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #dfd97b;
/* rgb */ color: rgb(223, 217, 123);
/* oklch */ color: oklch(87.0% 0.117 105.3);
Tailwind
colors: {
  custom: {
    50: '#ebe4a3',
    500: '#dfd97b',
    950: '#000000',
  },
}
SCSS
$custom: #dfd97b;
$custom-light: #ebe4a3;
$custom-dark: #000000;
JSON
{
  "hex": "#dfd97b",
  "rgb": {
    "r": 223,
    "g": 217,
    "b": 123
  },
  "hsl": {
    "h": 56.4,
    "s": 60.976,
    "l": 67.843
  },
  "oklch": {
    "l": 0.87014,
    "c": 0.11656,
    "h": 105.3
  },
  "luminance": 0.66744
}

Semantic roles & 50–950 ramp

primary
#DFD97B
secondary
#494FB5
accent
#27C91D
background
#FFFEFC
surface
#FEFCF5
border
#D6D5CF
text
#16150F
muted
#858480

Preview Lab

Preview with #DFD97B

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

Preview Lab → · Contrast checker → · Palette generator →

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