#F5E771#F5E771

#F5E771 is a very light, vivid yellow. Relative luminance 0.778; OKLCH L 91.6% C 0.140 H 102.6°. Best body text is #000000 at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#F5E771
RGBrgb(245, 231, 113)
HSLhsl(54, 87%, 70%)
HSVhsv(54, 54%, 96%)
CMYKcmyk(0%, 5.7%, 53.9%, 3.9%)
CIE-LABlab(90.67, -9.94, 58.29)
CIE-LCHlch(90.67, 59.13, 99.68°)
OKLaboklab(91.61% -0.0304 0.1364)
OKLCHoklch(91.61% 0.14 102.6)
XYZxyz(69.2149, 77.7590, 26.9826)
Luminance0.7776 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E771 #717FF5
analogous
#F5A571 #F5E771 #C1F571
triadic
#F5E771 #71F5E7 #E771F5
tetradic
#F5E771 #71F5A5 #717FF5 #F571C1
square
#F5E771 #71F5A5 #717FF5 #F571C1
split-complementary
#F5E771 #71C1F5 #A571F5
monochromatic
#DCC610 #F1DD38 #F5E771 #F9F1AA #FDFAE2

Accessibility & contrast

On white

1.27
#F5E771 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.55
#F5E771 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E771
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E771#FFFFFF#000000##000000
##F5E7711.001.2716.5516.55
#FFFFFF1.271.0021.0021.00
#00000016.5521.001.001.00
##00000016.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F9E166
Deuteranopia (green-blind)
#FDE777
Tritanopia (blue-blind)
#FFD9CC
Achromatopsia (no color)
#E4E4E4

Design tokens & code

CSS
--color: #f5e771;
/* rgb */ color: rgb(245, 231, 113);
/* oklch */ color: oklch(91.6% 0.140 102.6);
Tailwind
colors: {
  custom: {
    50: '#fbee9d',
    500: '#f5e771',
    950: '#000000',
  },
}
SCSS
$custom: #f5e771;
$custom-light: #fbee9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e771",
  "rgb": {
    "r": 245,
    "g": 231,
    "b": 113
  },
  "hsl": {
    "h": 53.636,
    "s": 86.842,
    "l": 70.196
  },
  "oklch": {
    "l": 0.91614,
    "c": 0.1397,
    "h": 102.6
  },
  "luminance": 0.77757
}

Semantic roles & 50–950 ramp

primary
#F5E771
secondary
#3B4BCF
accent
#1AE302
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F5E771

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

Preview Lab → · Contrast checker → · Palette generator →

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