#DEC427#DEC427

#DEC427 is a light, vivid yellow. Relative luminance 0.552; OKLCH L 81.8% C 0.161 H 98.9°. Best body text is #000000 at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#DEC427
RGBrgb(222, 196, 39)
HSLhsl(51, 73%, 51%)
HSVhsv(51, 82%, 87%)
CMYKcmyk(0%, 11.7%, 82.4%, 12.9%)
CIE-LABlab(79.13, -5.80, 74.03)
CIE-LCHlch(79.13, 74.26, 94.48°)
OKLaboklab(81.82% -0.0249 0.1589)
OKLCHoklch(81.82% 0.161 98.9)
XYZxyz(50.2330, 55.1586, 9.9198)
Luminance0.5516 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEC427 #2741DE
analogous
#DE6827 #DEC427 #9DDE27
triadic
#DEC427 #27DEC4 #C427DE
tetradic
#DEC427 #27DE68 #2741DE #DE279D
square
#DEC427 #27DE68 #2741DE #DE279D
split-complementary
#DEC427 #279DDE #6827DE
monochromatic
#786A12 #AD981A #DEC427 #E6D25C #EEE191

Accessibility & contrast

On white

1.75
#DEC427 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.03
#DEC427 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEC427
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEC427#FFFFFF#000000##000000
##DEC4271.001.7512.0312.03
#FFFFFF1.751.0021.0021.00
#00000012.0321.001.001.00
##00000012.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8BF00
Deuteranopia (green-blind)
#DFC834
Tritanopia (blue-blind)
#F0B5A8
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #dec427;
/* rgb */ color: rgb(222, 196, 39);
/* oklch */ color: oklch(81.8% 0.161 98.9);
Tailwind
colors: {
  custom: {
    50: '#edd571',
    500: '#dec427',
    950: '#000000',
  },
}
SCSS
$custom: #dec427;
$custom-light: #edd571;
$custom-dark: #000000;
JSON
{
  "hex": "#dec427",
  "rgb": {
    "r": 222,
    "g": 196,
    "b": 39
  },
  "hsl": {
    "h": 51.475,
    "s": 73.494,
    "l": 51.176
  },
  "oklch": {
    "l": 0.81817,
    "c": 0.16085,
    "h": 98.9
  },
  "luminance": 0.55156
}

Semantic roles & 50–950 ramp

primary
#DEC427
secondary
#293580
accent
#52F038
background
#FFFEFB
surface
#FFFBF1
border
#D7D4CB
text
#171409
muted
#85837D

Preview Lab

Preview with #DEC427

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

Preview Lab → · Contrast checker → · Palette generator →

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