#DFC871#DFC871

#DFC871 is a very light, moderate yellow. Relative luminance 0.582; OKLCH L 83.4% C 0.111 H 95.0°. Best body text is #000000 at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#DFC871
RGBrgb(223, 200, 113)
HSLhsl(47, 63%, 66%)
HSVhsv(47, 49%, 87%)
CMYKcmyk(0%, 10.3%, 49.3%, 12.5%)
CIE-LABlab(80.84, -3.15, 46.16)
CIE-LCHlch(80.84, 46.26, 93.90°)
OKLaboklab(83.38% -0.0096 0.1102)
OKLCHoklch(83.38% 0.111 95)
XYZxyz(54.0681, 58.1910, 24.0035)
Luminance0.5819 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DFC871 #7188DF
analogous
#DF9171 #DFC871 #BFDF71
triadic
#DFC871 #71DFC8 #C871DF
tetradic
#DFC871 #71DF91 #7188DF #DF71BF
square
#DFC871 #71DF91 #7188DF #DF71BF
split-complementary
#DFC871 #71BFDF #9171DF
monochromatic
#AE9227 #D4B53F #DFC871 #EADBA3 #F6EFD5

Accessibility & contrast

On white

1.66
#DFC871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.64
#DFC871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DFC871
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DFC871#FFFFFF#000000##000000
##DFC8711.001.6612.6412.64
#FFFFFF1.661.0021.0021.00
#00000012.6421.001.001.00
##00000012.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C46A
Deuteranopia (green-blind)
#DECC74
Tritanopia (blue-blind)
#EEBCB3
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #dfc871;
/* rgb */ color: rgb(223, 200, 113);
/* oklch */ color: oklch(83.4% 0.111 95.0);
Tailwind
colors: {
  custom: {
    50: '#ebd89b',
    500: '#dfc871',
    950: '#000000',
  },
}
SCSS
$custom: #dfc871;
$custom-light: #ebd89b;
$custom-dark: #000000;
JSON
{
  "hex": "#dfc871",
  "rgb": {
    "r": 223,
    "g": 200,
    "b": 113
  },
  "hsl": {
    "h": 47.455,
    "s": 63.218,
    "l": 65.882
  },
  "oklch": {
    "l": 0.83383,
    "c": 0.11061,
    "h": 95
  },
  "luminance": 0.58189
}

Semantic roles & 50–950 ramp

primary
#DFC871
secondary
#445BB0
accent
#3FCB1B
background
#FFFEFC
surface
#FEFBF5
border
#D6D4CF
text
#16140E
muted
#85837F

Preview Lab

Preview with #DFC871

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

Preview Lab → · Contrast checker → · Palette generator →

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