#DFD871#DFD871

#DFD871 is a very light, vivid yellow. Relative luminance 0.660; OKLCH L 86.7% C 0.126 H 105.2°. Best body text is #000000 at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#DFD871
RGBrgb(223, 216, 113)
HSLhsl(56, 63%, 66%)
HSVhsv(56, 49%, 87%)
CMYKcmyk(0%, 3.1%, 49.3%, 12.5%)
CIE-LABlab(84.99, -11.29, 51.16)
CIE-LCHlch(84.99, 52.39, 102.45°)
OKLaboklab(86.67% -0.033 0.1212)
OKLCHoklch(86.67% 0.126 105.2)
XYZxyz(57.9694, 65.9936, 25.3040)
Luminance0.6599 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFD871 #7178DF
analogous
#DFA171 #DFD871 #AFDF71
triadic
#DFD871 #71DFD8 #D871DF
tetradic
#DFD871 #71DFA1 #7178DF #DF71AF
square
#DFD871 #71DFA1 #7178DF #DF71AF
split-complementary
#DFD871 #71AFDF #A171DF
monochromatic
#AEA627 #D4CA3F #DFD871 #EAE6A3 #F6F3D5

Accessibility & contrast

On white

1.48
#DFD871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.20
#DFD871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFD871
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFD871#FFFFFF#000000##000000
##DFD8711.001.4814.2014.20
#FFFFFF1.481.0021.0021.00
#00000014.2021.001.001.00
##00000014.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7D168
Deuteranopia (green-blind)
#EAD776
Tritanopia (blue-blind)
#EDCCC0
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #dfd871;
/* rgb */ color: rgb(223, 216, 113);
/* oklch */ color: oklch(86.7% 0.126 105.2);
Tailwind
colors: {
  custom: {
    50: '#ebe39c',
    500: '#dfd871',
    950: '#000000',
  },
}
SCSS
$custom: #dfd871;
$custom-light: #ebe39c;
$custom-dark: #000000;
JSON
{
  "hex": "#dfd871",
  "rgb": {
    "r": 223,
    "g": 216,
    "b": 113
  },
  "hsl": {
    "h": 56.182,
    "s": 63.218,
    "l": 65.882
  },
  "oklch": {
    "l": 0.86671,
    "c": 0.12564,
    "h": 105.2
  },
  "luminance": 0.65992
}

Semantic roles & 50–950 ramp

primary
#DFD871
secondary
#444BB0
accent
#26CB1B
background
#FFFEFC
surface
#FEFCF5
border
#D6D5CF
text
#16150E
muted
#85847F

Preview Lab

Preview with #DFD871

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

Preview Lab → · Contrast checker → · Palette generator →

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