#FFEC7F#FFEC7F

#FFEC7F is a very light, vivid yellow. Relative luminance 0.828; OKLCH L 93.6% C 0.131 H 99.6°. Best body text is #000000 at 17.56:1 contrast (WCAG AA passes).

Color values

HEX#FFEC7F
RGBrgb(255, 236, 127)
HSLhsl(51, 100%, 75%)
HSVhsv(51, 50%, 100%)
CMYKcmyk(0%, 7.5%, 50.2%, 0%)
CIE-LABlab(92.92, -7.31, 54.68)
CIE-LCHlch(92.92, 55.17, 97.61°)
OKLaboklab(93.65% -0.0219 0.1296)
OKLCHoklch(93.65% 0.131 99.6)
XYZxyz(75.0685, 82.7860, 32.0996)
Luminance0.8278 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEC7F #7F92FF
analogous
#FFAC7F #FFEC7F #D2FF7F
triadic
#FFEC7F #7FFFEC #EC7FFF
tetradic
#FFEC7F #7FFFAC #7F92FF #FF7FD2
square
#FFEC7F #7FFFAC #7F92FF #FF7FD2
split-complementary
#FFEC7F #7FD2FF #AC7FFF
monochromatic
#FFDA05 #FFE342 #FFEC7F #FFF5BC #FFFAE0

Accessibility & contrast

On white

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

On black

17.56
#FFEC7F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEC7F
17.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEC7F#FFFFFF#000000##000000
##FFEC7F1.001.2017.5617.56
#FFFFFF1.201.0021.0021.00
#00000017.5621.001.001.00
##00000017.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEE675
Deuteranopia (green-blind)
#FFEE84
Tritanopia (blue-blind)
#FFDED3
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #ffec7f;
/* rgb */ color: rgb(255, 236, 127);
/* oklch */ color: oklch(93.6% 0.131 99.6);
Tailwind
colors: {
  custom: {
    50: '#fff1a6',
    500: '#ffec7f',
    950: '#000000',
  },
}
SCSS
$custom: #ffec7f;
$custom-light: #fff1a6;
$custom-dark: #000000;
JSON
{
  "hex": "#ffec7f",
  "rgb": {
    "r": 255,
    "g": 236,
    "b": 127
  },
  "hsl": {
    "h": 51.094,
    "s": 100,
    "l": 74.902
  },
  "oklch": {
    "l": 0.93647,
    "c": 0.13149,
    "h": 99.6
  },
  "luminance": 0.82783
}

Semantic roles & 50–950 ramp

primary
#FFEC7F
secondary
#445BDE
accent
#22E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#181610
muted
#868580

Preview Lab

Preview with #FFEC7F

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

Preview Lab → · Contrast checker → · Palette generator →

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