#FFEC7A#FFEC7A

#FFEC7A is a very light, vivid yellow. Relative luminance 0.827; OKLCH L 93.6% C 0.136 H 100.0°. Best body text is #000000 at 17.53:1 contrast (WCAG AA passes).

Color values

HEX#FFEC7A
RGBrgb(255, 236, 122)
HSLhsl(51, 100%, 74%)
HSVhsv(51, 52%, 100%)
CMYKcmyk(0%, 7.5%, 52.2%, 0%)
CIE-LABlab(92.86, -7.72, 56.94)
CIE-LCHlch(92.86, 57.46, 97.72°)
OKLaboklab(93.58% -0.0237 0.1341)
OKLCHoklch(93.58% 0.136 100)
XYZxyz(74.7507, 82.6588, 30.4258)
Luminance0.8266 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEC7A #7A8DFF
analogous
#FFAA7A #FFEC7A #CFFF7A
triadic
#FFEC7A #7AFFEC #EC7AFF
tetradic
#FFEC7A #7AFFAA #7A8DFF #FF7ACF
square
#FFEC7A #7AFFAA #7A8DFF #FF7ACF
split-complementary
#FFEC7A #7ACFFF #AA7AFF
monochromatic
#FFDA00 #FFE33D #FFEC7A #FFF5B7 #FFFBE0

Accessibility & contrast

On white

1.20
#FFEC7A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.53
#FFEC7A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEC7A
17.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEC7A#FFFFFF#000000##000000
##FFEC7A1.001.2017.5317.53
#FFFFFF1.201.0021.0021.00
#00000017.5321.001.001.00
##00000017.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEE670
Deuteranopia (green-blind)
#FFEE7F
Tritanopia (blue-blind)
#FFDED2
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #ffec7a;
/* rgb */ color: rgb(255, 236, 122);
/* oklch */ color: oklch(93.6% 0.136 100.0);
Tailwind
colors: {
  custom: {
    50: '#fff1a3',
    500: '#ffec7a',
    950: '#000000',
  },
}
SCSS
$custom: #ffec7a;
$custom-light: #fff1a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ffec7a",
  "rgb": {
    "r": 255,
    "g": 236,
    "b": 122
  },
  "hsl": {
    "h": 51.429,
    "s": 100,
    "l": 73.922
  },
  "oklch": {
    "l": 0.93584,
    "c": 0.13621,
    "h": 100
  },
  "luminance": 0.82656
}

Semantic roles & 50–950 ramp

primary
#FFEC7A
secondary
#4056DD
accent
#21E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #FFEC7A

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

Preview Lab → · Contrast checker → · Palette generator →

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