#DFD171#DFD171

#DFD171 is a very light, moderate yellow. Relative luminance 0.625; OKLCH L 85.2% C 0.119 H 101.1°. Best body text is #000000 at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#DFD171
RGBrgb(223, 209, 113)
HSLhsl(52, 63%, 66%)
HSVhsv(52, 49%, 87%)
CMYKcmyk(0%, 6.3%, 49.3%, 12.5%)
CIE-LABlab(83.17, -7.76, 48.97)
CIE-LCHlch(83.17, 49.59, 99.00°)
OKLaboklab(85.22% -0.0229 0.1164)
OKLCHoklch(85.22% 0.119 101.1)
XYZxyz(56.2141, 62.4831, 24.7189)
Luminance0.6248 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFD171 #717FDF
analogous
#DF9A71 #DFD171 #B6DF71
triadic
#DFD171 #71DFD1 #D171DF
tetradic
#DFD171 #71DF9A #717FDF #DF71B6
square
#DFD171 #71DF9A #717FDF #DF71B6
split-complementary
#DFD171 #71B6DF #9A71DF
monochromatic
#AE9D27 #D4C13F #DFD171 #EAE1A3 #F6F1D5

Accessibility & contrast

On white

1.56
#DFD171 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.50
#DFD171 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFD171
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFD171#FFFFFF#000000##000000
##DFD1711.001.5613.5013.50
#FFFFFF1.561.0021.0021.00
#00000013.5021.001.001.00
##00000013.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1CC69
Deuteranopia (green-blind)
#E5D275
Tritanopia (blue-blind)
#EDC5BB
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #dfd171;
/* rgb */ color: rgb(223, 209, 113);
/* oklch */ color: oklch(85.2% 0.119 101.1);
Tailwind
colors: {
  custom: {
    50: '#ebde9c',
    500: '#dfd171',
    950: '#000000',
  },
}
SCSS
$custom: #dfd171;
$custom-light: #ebde9c;
$custom-dark: #000000;
JSON
{
  "hex": "#dfd171",
  "rgb": {
    "r": 223,
    "g": 209,
    "b": 113
  },
  "hsl": {
    "h": 52.364,
    "s": 63.218,
    "l": 65.882
  },
  "oklch": {
    "l": 0.85224,
    "c": 0.11865,
    "h": 101.1
  },
  "luminance": 0.62481
}

Semantic roles & 50–950 ramp

primary
#DFD171
secondary
#4452B0
accent
#31CB1B
background
#FFFEFC
surface
#FEFCF5
border
#D6D5CF
text
#16150E
muted
#85847F

Preview Lab

Preview with #DFD171

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

Preview Lab → · Contrast checker → · Palette generator →

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