#DFD298#DFD298

#DFD298 is a very light, moderate yellow. Relative luminance 0.640; OKLCH L 86.1% C 0.077 H 97.0°. Best body text is #000000 at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#DFD298
RGBrgb(223, 210, 152)
HSLhsl(49, 53%, 74%)
HSVhsv(49, 32%, 87%)
CMYKcmyk(0%, 5.8%, 31.8%, 12.5%)
CIE-LABlab(83.99, -4.12, 30.43)
CIE-LCHlch(83.99, 30.71, 97.72°)
OKLaboklab(86.06% -0.0093 0.0761)
OKLCHoklch(86.06% 0.077 97)
XYZxyz(59.1462, 64.0497, 38.9468)
Luminance0.6405 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFD298 #98A5DF
analogous
#DFAE98 #DFD298 #C8DF98
triadic
#DFD298 #98DFD2 #D298DF
tetradic
#DFD298 #98DFAE #98A5DF #DF98C8
square
#DFD298 #98DFAE #98A5DF #DF98C8
split-complementary
#DFD298 #98C8DF #AE98DF
monochromatic
#C1A83C #D0BE69 #DFD298 #EEE6C7 #F8F5E8

Accessibility & contrast

On white

1.52
#DFD298 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.81
#DFD298 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFD298
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFD298#FFFFFF#000000##000000
##DFD2981.001.5213.8113.81
#FFFFFF1.521.0021.0021.00
#00000013.8121.001.001.00
##00000013.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDCF94
Deuteranopia (green-blind)
#E1D49A
Tritanopia (blue-blind)
#EACAC3
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #dfd298;
/* rgb */ color: rgb(223, 210, 152);
/* oklch */ color: oklch(86.1% 0.077 97.0);
Tailwind
colors: {
  custom: {
    50: '#eadfb6',
    500: '#dfd298',
    950: '#000000',
  },
}
SCSS
$custom: #dfd298;
$custom-light: #eadfb6;
$custom-dark: #000000;
JSON
{
  "hex": "#dfd298",
  "rgb": {
    "r": 223,
    "g": 210,
    "b": 152
  },
  "hsl": {
    "h": 49.014,
    "s": 52.593,
    "l": 73.529
  },
  "oklch": {
    "l": 0.86058,
    "c": 0.07663,
    "h": 97
  },
  "luminance": 0.64048
}

Semantic roles & 50–950 ramp

primary
#DFD298
secondary
#6473B7
accent
#42C025
background
#FEFEFD
surface
#FDFCF8
border
#D5D5D1
text
#161511
muted
#848481

Preview Lab

Preview with #DFD298

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

Preview Lab → · Contrast checker → · Palette generator →

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