#F7EC8A#F7EC8A

#F7EC8A is a very light, vivid yellow. Relative luminance 0.816; OKLCH L 93.1% C 0.120 H 102.8°. Best body text is #000000 at 17.32:1 contrast (WCAG AA passes).

Color values

HEX#F7EC8A
RGBrgb(247, 236, 138)
HSLhsl(54, 87%, 75%)
HSVhsv(54, 44%, 97%)
CMYKcmyk(0%, 4.5%, 44.1%, 3.1%)
CIE-LABlab(92.40, -9.46, 48.66)
CIE-LCHlch(92.40, 49.58, 101.00°)
OKLaboklab(93.12% -0.0267 0.1172)
OKLCHoklch(93.12% 0.12 102.8)
XYZxyz(72.9423, 81.6022, 35.9483)
Luminance0.8160 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7EC8A #8A95F7
analogous
#F7B58A #F7EC8A #CBF78A
triadic
#F7EC8A #8AF7EC #EC8AF7
tetradic
#F7EC8A #8AF7B5 #8A95F7 #F78ACB
square
#F7EC8A #8AF7B5 #8A95F7 #F78ACB
split-complementary
#F7EC8A #8ACBF7 #B58AF7
monochromatic
#EFD917 #F3E351 #F7EC8A #FBF5C3 #FDFAE2

Accessibility & contrast

On white

1.21
#F7EC8A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.32
#F7EC8A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7EC8A
17.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7EC8A#FFFFFF#000000##000000
##F7EC8A1.001.2117.3217.32
#FFFFFF1.211.0021.0021.00
#00000017.3221.001.001.00
##00000017.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FCE682
Deuteranopia (green-blind)
#FFEC8E
Tritanopia (blue-blind)
#FFE0D4
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #f7ec8a;
/* rgb */ color: rgb(247, 236, 138);
/* oklch */ color: oklch(93.1% 0.120 102.8);
Tailwind
colors: {
  custom: {
    50: '#fbf2ae',
    500: '#f7ec8a',
    950: '#000000',
  },
}
SCSS
$custom: #f7ec8a;
$custom-light: #fbf2ae;
$custom-dark: #000000;
JSON
{
  "hex": "#f7ec8a",
  "rgb": {
    "r": 247,
    "g": 236,
    "b": 138
  },
  "hsl": {
    "h": 53.945,
    "s": 87.2,
    "l": 75.49
  },
  "oklch": {
    "l": 0.93119,
    "c": 0.12022,
    "h": 102.8
  },
  "luminance": 0.816
}

Semantic roles & 50–950 ramp

primary
#F7EC8A
secondary
#505ED5
accent
#19E402
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181610
muted
#868581

Preview Lab

Preview with #F7EC8A

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

Preview Lab → · Contrast checker → · Palette generator →

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