#DFD98F#DFD98F

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

Color values

HEX#DFD98F
RGBrgb(223, 217, 143)
HSLhsl(56, 56%, 72%)
HSVhsv(56, 36%, 87%)
CMYKcmyk(0%, 2.7%, 35.9%, 12.5%)
CIE-LABlab(85.65, -8.76, 37.23)
CIE-LCHlch(85.65, 38.24, 103.25°)
OKLaboklab(87.33% -0.0232 0.0917)
OKLCHoklch(87.33% 0.095 104.2)
XYZxyz(60.2030, 67.2982, 35.7998)
Luminance0.6730 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFD98F #8F95DF
analogous
#DFB18F #DFD98F #BDDF8F
triadic
#DFD98F #8FDFD9 #D98FDF
tetradic
#DFD98F #8FDFB1 #8F95DF #DF8FBD
square
#DFD98F #8FDFB1 #8F95DF #DF8FBD
split-complementary
#DFD98F #8FBDDF #B18FDF
monochromatic
#BDB336 #D1C95F #DFD98F #EDE9BF #F8F7E7

Accessibility & contrast

On white

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

On black

14.46
#DFD98F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFD98F
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFD98F#FFFFFF#000000##000000
##DFD98F1.001.4514.4614.46
#FFFFFF1.451.0021.0021.00
#00000014.4621.001.001.00
##00000014.4621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #dfd98f;
/* rgb */ color: rgb(223, 217, 143);
/* oklch */ color: oklch(87.3% 0.095 104.2);
Tailwind
colors: {
  custom: {
    50: '#eae4b0',
    500: '#dfd98f',
    950: '#000000',
  },
}
SCSS
$custom: #dfd98f;
$custom-light: #eae4b0;
$custom-dark: #000000;
JSON
{
  "hex": "#dfd98f",
  "rgb": {
    "r": 223,
    "g": 217,
    "b": 143
  },
  "hsl": {
    "h": 55.5,
    "s": 55.556,
    "l": 71.765
  },
  "oklch": {
    "l": 0.87326,
    "c": 0.09458,
    "h": 104.2
  },
  "luminance": 0.67297
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #DFD98F

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

Preview Lab → · Contrast checker → · Palette generator →

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