#F0E771#F0E771

#F0E771 is a very light, vivid yellow. Relative luminance 0.769; OKLCH L 91.2% C 0.140 H 104.9°. Best body text is #000000 at 16.37:1 contrast (WCAG AA passes).

Color values

HEX#F0E771
RGBrgb(240, 231, 113)
HSLhsl(56, 81%, 69%)
HSVhsv(56, 53%, 94%)
CMYKcmyk(0%, 3.7%, 52.9%, 5.9%)
CIE-LABlab(90.26, -11.95, 57.71)
CIE-LCHlch(90.26, 58.94, 101.70°)
OKLaboklab(91.19% -0.0359 0.1352)
OKLCHoklch(91.19% 0.14 104.9)
XYZxyz(67.4937, 76.8715, 26.9019)
Luminance0.7687 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0E771 #717AF0
analogous
#F0A871 #F0E771 #BAF071
triadic
#F0E771 #71F0E7 #E771F0
tetradic
#F0E771 #71F0A8 #717AF0 #F071BA
square
#F0E771 #71F0A8 #717AF0 #F071BA
split-complementary
#F0E771 #71BAF0 #A871F0
monochromatic
#D1C316 #EADE3A #F0E771 #F6F0A8 #FCFAE0

Accessibility & contrast

On white

1.28
#F0E771 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.37
#F0E771 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0E771
16.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0E771#FFFFFF#000000##000000
##F0E7711.001.2816.3716.37
#FFFFFF1.281.0021.0021.00
#00000016.3721.001.001.00
##00000016.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#F8E066
Deuteranopia (green-blind)
#FCE677
Tritanopia (blue-blind)
#FFDACC
Achromatopsia (no color)
#E3E3E3

Design tokens & code

CSS
--color: #f0e771;
/* rgb */ color: rgb(240, 231, 113);
/* oklch */ color: oklch(91.2% 0.140 104.9);
Tailwind
colors: {
  custom: {
    50: '#f7ee9d',
    500: '#f0e771',
    950: '#000000',
  },
}
SCSS
$custom: #f0e771;
$custom-light: #f7ee9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f0e771",
  "rgb": {
    "r": 240,
    "g": 231,
    "b": 113
  },
  "hsl": {
    "h": 55.748,
    "s": 80.892,
    "l": 69.216
  },
  "oklch": {
    "l": 0.91192,
    "c": 0.13987,
    "h": 104.9
  },
  "luminance": 0.76869
}

Semantic roles & 50–950 ramp

primary
#F0E771
secondary
#3C46C9
accent
#17DD08
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#17160E
muted
#85847F

Preview Lab

Preview with #F0E771

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

Preview Lab → · Contrast checker → · Palette generator →

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