#FFEC7C#FFEC7C

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

Color values

HEX#FFEC7C
RGBrgb(255, 236, 124)
HSLhsl(51, 100%, 74%)
HSVhsv(51, 51%, 100%)
CMYKcmyk(0%, 7.5%, 51.4%, 0%)
CIE-LABlab(92.89, -7.56, 56.04)
CIE-LCHlch(92.89, 56.55, 97.68°)
OKLaboklab(93.61% -0.023 0.1324)
OKLCHoklch(93.61% 0.134 99.9)
XYZxyz(74.8759, 82.7089, 31.0852)
Luminance0.8271 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEC7C #7C8FFF
analogous
#FFAB7C #FFEC7C #D0FF7C
triadic
#FFEC7C #7CFFEC #EC7CFF
tetradic
#FFEC7C #7CFFAB #7C8FFF #FF7CD0
square
#FFEC7C #7CFFAB #7C8FFF #FF7CD0
split-complementary
#FFEC7C #7CD0FF #AB7CFF
monochromatic
#FFDA02 #FFE33F #FFEC7C #FFF5B9 #FFFBE0

Accessibility & contrast

On white

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

On black

17.54
#FFEC7C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEC7C
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEC7C#FFFFFF#000000##000000
##FFEC7C1.001.2017.5417.54
#FFFFFF1.201.0021.0021.00
#00000017.5421.001.001.00
##00000017.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEE672
Deuteranopia (green-blind)
#FFEE81
Tritanopia (blue-blind)
#FFDED2
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #ffec7c;
/* rgb */ color: rgb(255, 236, 124);
/* oklch */ color: oklch(93.6% 0.134 99.9);
Tailwind
colors: {
  custom: {
    50: '#fff1a4',
    500: '#ffec7c',
    950: '#000000',
  },
}
SCSS
$custom: #ffec7c;
$custom-light: #fff1a4;
$custom-dark: #000000;
JSON
{
  "hex": "#ffec7c",
  "rgb": {
    "r": 255,
    "g": 236,
    "b": 124
  },
  "hsl": {
    "h": 51.298,
    "s": 100,
    "l": 74.314
  },
  "oklch": {
    "l": 0.93609,
    "c": 0.13434,
    "h": 99.9
  },
  "luminance": 0.82706
}

Semantic roles & 50–950 ramp

primary
#FFEC7C
secondary
#4258DE
accent
#21E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #FFEC7C

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

Preview Lab → · Contrast checker → · Palette generator →

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