#DEC751#DEC751

#DEC751 is a very light, vivid yellow. Relative luminance 0.570; OKLCH L 82.7% C 0.138 H 98.2°. Best body text is #000000 at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#DEC751
RGBrgb(222, 199, 81)
HSLhsl(50, 68%, 59%)
HSVhsv(50, 64%, 87%)
CMYKcmyk(0%, 10.4%, 63.5%, 12.9%)
CIE-LABlab(80.16, -5.47, 60.17)
CIE-LCHlch(80.16, 60.42, 95.19°)
OKLaboklab(82.72% -0.0198 0.137)
OKLCHoklch(82.72% 0.138 98.2)
XYZxyz(52.0351, 56.9729, 16.0390)
Luminance0.5697 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEC751 #5168DE
analogous
#DE8151 #DEC751 #AEDE51
triadic
#DEC751 #51DEC7 #C751DE
tetradic
#DEC751 #51DE81 #5168DE #DE51AE
square
#DEC751 #51DE81 #5168DE #DE51AE
split-complementary
#DEC751 #51AEDE #8151DE
monochromatic
#98841D #CBB027 #DEC751 #E8D884 #F2E8B8

Accessibility & contrast

On white

1.69
#DEC751 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.39
#DEC751 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEC751
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEC751#FFFFFF#000000##000000
##DEC7511.001.6912.3912.39
#FFFFFF1.691.0021.0021.00
#00000012.3921.001.001.00
##00000012.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C243
Deuteranopia (green-blind)
#DFCA57
Tritanopia (blue-blind)
#EEB9AE
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #dec751;
/* rgb */ color: rgb(222, 199, 81);
/* oklch */ color: oklch(82.7% 0.138 98.2);
Tailwind
colors: {
  custom: {
    50: '#ecd787',
    500: '#dec751',
    950: '#000000',
  },
}
SCSS
$custom: #dec751;
$custom-light: #ecd787;
$custom-dark: #000000;
JSON
{
  "hex": "#dec751",
  "rgb": {
    "r": 222,
    "g": 199,
    "b": 81
  },
  "hsl": {
    "h": 50.213,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.82716,
    "c": 0.13839,
    "h": 98.2
  },
  "luminance": 0.56971
}

Semantic roles & 50–950 ramp

primary
#DEC751
secondary
#37489C
accent
#59EB3D
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#17140C
muted
#85837F

Preview Lab

Preview with #DEC751

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

Preview Lab → · Contrast checker → · Palette generator →

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