#F8EC7A#F8EC7A

#F8EC7A is a very light, vivid yellow. Relative luminance 0.814; OKLCH L 93.0% C 0.136 H 103.3°. Best body text is #000000 at 17.27:1 contrast (WCAG AA passes).

Color values

HEX#F8EC7A
RGBrgb(248, 236, 122)
HSLhsl(54, 90%, 73%)
HSVhsv(54, 51%, 97%)
CMYKcmyk(0%, 4.8%, 50.8%, 2.7%)
CIE-LABlab(92.29, -10.50, 56.12)
CIE-LCHlch(92.29, 57.10, 100.60°)
OKLaboklab(92.99% -0.0313 0.1325)
OKLCHoklch(92.99% 0.136 103.3)
XYZxyz(72.2218, 81.3549, 30.3073)
Luminance0.8135 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8EC7A #7A86F8
analogous
#F8AD7A #F8EC7A #C5F87A
triadic
#F8EC7A #7AF8EC #EC7AF8
tetradic
#F8EC7A #7AF8AD #7A86F8 #F87AC5
square
#F8EC7A #7AF8AD #7A86F8 #F87AC5
split-complementary
#F8EC7A #7AC5F8 #AD7AF8
monochromatic
#EBD60C #F5E440 #F8EC7A #FBF4B4 #FDFBE2

Accessibility & contrast

On white

1.22
#F8EC7A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.27
#F8EC7A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8EC7A
17.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8EC7A#FFFFFF#000000##000000
##F8EC7A1.001.2217.2717.27
#FFFFFF1.221.0021.0021.00
#00000017.2721.001.001.00
##00000017.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDE570
Deuteranopia (green-blind)
#FFEC7F
Tritanopia (blue-blind)
#FFDFD2
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #f8ec7a;
/* rgb */ color: rgb(248, 236, 122);
/* oklch */ color: oklch(93.0% 0.136 103.3);
Tailwind
colors: {
  custom: {
    50: '#fdf1a3',
    500: '#f8ec7a',
    950: '#000000',
  },
}
SCSS
$custom: #f8ec7a;
$custom-light: #fdf1a3;
$custom-dark: #000000;
JSON
{
  "hex": "#f8ec7a",
  "rgb": {
    "r": 248,
    "g": 236,
    "b": 122
  },
  "hsl": {
    "h": 54.286,
    "s": 90,
    "l": 72.549
  },
  "oklch": {
    "l": 0.9299,
    "c": 0.1361,
    "h": 103.3
  },
  "luminance": 0.81353
}

Semantic roles & 50–950 ramp

primary
#F8EC7A
secondary
#4250D4
accent
#16E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #F8EC7A

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

Preview Lab → · Contrast checker → · Palette generator →

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