#DFD98E#DFD98E

#DFD98E is a very light, moderate yellow. Relative luminance 0.673; OKLCH L 87.3% C 0.096 H 104.3°. Best body text is #000000 at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#DFD98E
RGBrgb(223, 217, 142)
HSLhsl(56, 56%, 72%)
HSVhsv(56, 36%, 87%)
CMYKcmyk(0%, 2.7%, 36.3%, 12.5%)
CIE-LABlab(85.64, -8.88, 37.71)
CIE-LCHlch(85.64, 38.74, 103.25°)
OKLaboklab(87.31% -0.0236 0.0928)
OKLCHoklch(87.31% 0.096 104.3)
XYZxyz(60.1276, 67.2681, 35.4026)
Luminance0.6727 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFD98E #8E94DF
analogous
#DFB18E #DFD98E #BDDF8E
triadic
#DFD98E #8EDFD9 #D98EDF
tetradic
#DFD98E #8EDFB1 #8E94DF #DF8EBD
square
#DFD98E #8EDFB1 #8E94DF #DF8EBD
split-complementary
#DFD98E #8EBDDF #B18EDF
monochromatic
#BDB336 #D1C95E #DFD98E #EDE9BE #F8F7E7

Accessibility & contrast

On white

1.45
#DFD98E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.45
#DFD98E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFD98E
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFD98E#FFFFFF#000000##000000
##DFD98E1.001.4514.4514.45
#FFFFFF1.451.0021.0021.00
#00000014.4521.001.001.00
##00000014.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5D489
Deuteranopia (green-blind)
#E8D891
Tritanopia (blue-blind)
#EAD0C6
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #dfd98e;
/* rgb */ color: rgb(223, 217, 142);
/* oklch */ color: oklch(87.3% 0.096 104.3);
Tailwind
colors: {
  custom: {
    50: '#eae4b0',
    500: '#dfd98e',
    950: '#000000',
  },
}
SCSS
$custom: #dfd98e;
$custom-light: #eae4b0;
$custom-dark: #000000;
JSON
{
  "hex": "#dfd98e",
  "rgb": {
    "r": 223,
    "g": 217,
    "b": 142
  },
  "hsl": {
    "h": 55.556,
    "s": 55.862,
    "l": 71.569
  },
  "oklch": {
    "l": 0.87309,
    "c": 0.09572,
    "h": 104.3
  },
  "luminance": 0.67267
}

Semantic roles & 50–950 ramp

primary
#DFD98E
secondary
#5A61B7
accent
#2EC322
background
#FEFEFD
surface
#FDFCF7
border
#D5D5D0
text
#161510
muted
#848481

Preview Lab

Preview with #DFD98E

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

Preview Lab → · Contrast checker → · Palette generator →

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