#DEC871#DEC871

#DEC871 is a very light, moderate yellow. Relative luminance 0.580; OKLCH L 83.3% C 0.110 H 95.5°. Best body text is #000000 at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#DEC871
RGBrgb(222, 200, 113)
HSLhsl(48, 62%, 66%)
HSVhsv(48, 49%, 87%)
CMYKcmyk(0%, 9.9%, 49.1%, 12.9%)
CIE-LABlab(80.76, -3.55, 46.03)
CIE-LCHlch(80.76, 46.16, 94.41°)
OKLaboklab(83.29% -0.0107 0.1099)
OKLCHoklch(83.29% 0.11 95.5)
XYZxyz(53.7608, 58.0326, 23.9891)
Luminance0.5803 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEC871 #7187DE
analogous
#DE9171 #DEC871 #BDDE71
triadic
#DEC871 #71DEC8 #C871DE
tetradic
#DEC871 #71DE91 #7187DE #DE71BD
square
#DEC871 #71DE91 #7187DE #DE71BD
split-complementary
#DEC871 #71BDDE #9171DE
monochromatic
#AD9228 #D2B53F #DEC871 #EADBA3 #F5EED4

Accessibility & contrast

On white

1.67
#DEC871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.61
#DEC871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEC871
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEC871#FFFFFF#000000##000000
##DEC8711.001.6712.6112.61
#FFFFFF1.671.0021.0021.00
#00000012.6121.001.001.00
##00000012.6121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #dec871;
/* rgb */ color: rgb(222, 200, 113);
/* oklch */ color: oklch(83.3% 0.110 95.5);
Tailwind
colors: {
  custom: {
    50: '#ead89b',
    500: '#dec871',
    950: '#000000',
  },
}
SCSS
$custom: #dec871;
$custom-light: #ead89b;
$custom-dark: #000000;
JSON
{
  "hex": "#dec871",
  "rgb": {
    "r": 222,
    "g": 200,
    "b": 113
  },
  "hsl": {
    "h": 47.89,
    "s": 62.286,
    "l": 65.686
  },
  "oklch": {
    "l": 0.83293,
    "c": 0.11045,
    "h": 95.5
  },
  "luminance": 0.5803
}

Semantic roles & 50–950 ramp

primary
#DEC871
secondary
#455AAF
accent
#3FCA1B
background
#FFFEFC
surface
#FEFBF5
border
#D6D4CF
text
#16140E
muted
#85837F

Preview Lab

Preview with #DEC871

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

Preview Lab → · Contrast checker → · Palette generator →

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