#DEC851#DEC851

#DEC851 is a very light, vivid yellow. Relative luminance 0.574; OKLCH L 82.9% C 0.139 H 98.8°. Best body text is #000000 at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#DEC851
RGBrgb(222, 200, 81)
HSLhsl(51, 68%, 59%)
HSVhsv(51, 64%, 87%)
CMYKcmyk(0%, 9.9%, 63.5%, 12.9%)
CIE-LABlab(80.42, -5.98, 60.45)
CIE-LCHlch(80.42, 60.75, 95.65°)
OKLaboklab(82.92% -0.0213 0.1376)
OKLCHoklch(82.92% 0.139 98.8)
XYZxyz(52.2659, 57.4346, 16.1159)
Luminance0.5743 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEC851 #5167DE
analogous
#DE8251 #DEC851 #AEDE51
triadic
#DEC851 #51DEC8 #C851DE
tetradic
#DEC851 #51DE82 #5167DE #DE51AE
square
#DEC851 #51DE82 #5167DE #DE51AE
split-complementary
#DEC851 #51AEDE #8251DE
monochromatic
#98851D #CBB227 #DEC851 #E8D884 #F2E9B8

Accessibility & contrast

On white

1.68
#DEC851 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.49
#DEC851 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEC851
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEC851#FFFFFF#000000##000000
##DEC8511.001.6812.4912.49
#FFFFFF1.681.0021.0021.00
#00000012.4921.001.001.00
##00000012.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC343
Deuteranopia (green-blind)
#E0CB57
Tritanopia (blue-blind)
#EEBAAF
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #dec851;
/* rgb */ color: rgb(222, 200, 81);
/* oklch */ color: oklch(82.9% 0.139 98.8);
Tailwind
colors: {
  custom: {
    50: '#ecd887',
    500: '#dec851',
    950: '#000000',
  },
}
SCSS
$custom: #dec851;
$custom-light: #ecd887;
$custom-dark: #000000;
JSON
{
  "hex": "#dec851",
  "rgb": {
    "r": 222,
    "g": 200,
    "b": 81
  },
  "hsl": {
    "h": 50.638,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.82921,
    "c": 0.13919,
    "h": 98.8
  },
  "luminance": 0.57432
}

Semantic roles & 50–950 ramp

primary
#DEC851
secondary
#37479C
accent
#58EB3D
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#17140C
muted
#85837F

Preview Lab

Preview with #DEC851

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

Preview Lab → · Contrast checker → · Palette generator →

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