#DFD798#DFD798

#DFD798 is a very light, moderate yellow. Relative luminance 0.666; OKLCH L 87.1% C 0.082 H 101.8°. Best body text is #000000 at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#DFD798
RGBrgb(223, 215, 152)
HSLhsl(53, 53%, 74%)
HSVhsv(53, 32%, 87%)
CMYKcmyk(0%, 3.6%, 31.8%, 12.5%)
CIE-LABlab(85.28, -6.68, 32.14)
CIE-LCHlch(85.28, 32.83, 101.74°)
OKLaboklab(87.08% -0.0167 0.0801)
OKLCHoklch(87.08% 0.082 101.8)
XYZxyz(60.3999, 66.5572, 39.3647)
Luminance0.6656 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFD798 #98A0DF
analogous
#DFB398 #DFD798 #C3DF98
triadic
#DFD798 #98DFD7 #D798DF
tetradic
#DFD798 #98DFB3 #98A0DF #DF98C3
square
#DFD798 #98DFB3 #98A0DF #DF98C3
split-complementary
#DFD798 #98C3DF #B398DF
monochromatic
#C1B23C #D0C569 #DFD798 #EEE9C7 #F8F6E8

Accessibility & contrast

On white

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

On black

14.31
#DFD798 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFD798
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFD798#FFFFFF#000000##000000
##DFD7981.001.4714.3114.31
#FFFFFF1.471.0021.0021.00
#00000014.3121.001.001.00
##00000014.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2D394
Deuteranopia (green-blind)
#E5D79A
Tritanopia (blue-blind)
#E9CFC7
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #dfd798;
/* rgb */ color: rgb(223, 215, 152);
/* oklch */ color: oklch(87.1% 0.082 101.8);
Tailwind
colors: {
  custom: {
    50: '#eae3b7',
    500: '#dfd798',
    950: '#000000',
  },
}
SCSS
$custom: #dfd798;
$custom-light: #eae3b7;
$custom-dark: #000000;
JSON
{
  "hex": "#dfd798",
  "rgb": {
    "r": 223,
    "g": 215,
    "b": 152
  },
  "hsl": {
    "h": 53.239,
    "s": 52.593,
    "l": 73.529
  },
  "oklch": {
    "l": 0.87077,
    "c": 0.08184,
    "h": 101.8
  },
  "luminance": 0.66556
}

Semantic roles & 50–950 ramp

primary
#DFD798
secondary
#646DB7
accent
#37C025
background
#FEFEFD
surface
#FDFCF8
border
#D5D5D1
text
#161511
muted
#848481

Preview Lab

Preview with #DFD798

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

Preview Lab → · Contrast checker → · Palette generator →

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