#DFD971#DFD971

#DFD971 is a very light, vivid yellow. Relative luminance 0.665; OKLCH L 86.9% C 0.127 H 105.8°. Best body text is #000000 at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#DFD971
RGBrgb(223, 217, 113)
HSLhsl(57, 63%, 66%)
HSVhsv(57, 49%, 87%)
CMYKcmyk(0%, 2.7%, 49.3%, 12.5%)
CIE-LABlab(85.25, -11.79, 51.48)
CIE-LCHlch(85.25, 52.81, 102.90°)
OKLaboklab(86.88% -0.0345 0.1219)
OKLCHoklch(86.88% 0.127 105.8)
XYZxyz(58.2264, 66.5076, 25.3896)
Luminance0.6651 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFD971 #7177DF
analogous
#DFA271 #DFD971 #AEDF71
triadic
#DFD971 #71DFD9 #D971DF
tetradic
#DFD971 #71DFA2 #7177DF #DF71AE
square
#DFD971 #71DFA2 #7177DF #DF71AE
split-complementary
#DFD971 #71AEDF #A271DF
monochromatic
#AEA727 #D4CC3F #DFD971 #EAE6A3 #F6F4D5

Accessibility & contrast

On white

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

On black

14.30
#DFD971 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFD971
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFD971#FFFFFF#000000##000000
##DFD9711.001.4714.3014.30
#FFFFFF1.471.0021.0021.00
#00000014.3021.001.001.00
##00000014.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D268
Deuteranopia (green-blind)
#EBD776
Tritanopia (blue-blind)
#EDCDC1
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #dfd971;
/* rgb */ color: rgb(223, 217, 113);
/* oklch */ color: oklch(86.9% 0.127 105.8);
Tailwind
colors: {
  custom: {
    50: '#ebe49c',
    500: '#dfd971',
    950: '#000000',
  },
}
SCSS
$custom: #dfd971;
$custom-light: #ebe49c;
$custom-dark: #000000;
JSON
{
  "hex": "#dfd971",
  "rgb": {
    "r": 223,
    "g": 217,
    "b": 113
  },
  "hsl": {
    "h": 56.727,
    "s": 63.218,
    "l": 65.882
  },
  "oklch": {
    "l": 0.86879,
    "c": 0.12668,
    "h": 105.8
  },
  "luminance": 0.66506
}

Semantic roles & 50–950 ramp

primary
#DFD971
secondary
#444AB0
accent
#24CB1B
background
#FFFEFC
surface
#FEFCF5
border
#D6D5CF
text
#16150E
muted
#85847F

Preview Lab

Preview with #DFD971

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

Preview Lab → · Contrast checker → · Palette generator →

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