#F5E772#F5E772

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

Color values

HEX#F5E772
RGBrgb(245, 231, 114)
HSLhsl(54, 87%, 70%)
HSVhsv(54, 53%, 96%)
CMYKcmyk(0%, 5.7%, 53.5%, 3.9%)
CIE-LABlab(90.68, -9.87, 57.85)
CIE-LCHlch(90.68, 58.68, 99.68°)
OKLaboklab(91.63% -0.0301 0.1355)
OKLCHoklch(91.63% 0.139 102.5)
XYZxyz(69.2716, 77.7816, 27.2808)
Luminance0.7778 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E772 #7280F5
analogous
#F5A572 #F5E772 #C1F572
triadic
#F5E772 #72F5E7 #E772F5
tetradic
#F5E772 #72F5A5 #7280F5 #F572C1
square
#F5E772 #72F5A5 #7280F5 #F572C1
split-complementary
#F5E772 #72C1F5 #A572F5
monochromatic
#DDC710 #F1DD39 #F5E772 #F9F1AB #FDFAE2

Accessibility & contrast

On white

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

On black

16.56
#F5E772 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E772
16.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E772#FFFFFF#000000##000000
##F5E7721.001.2716.5616.56
#FFFFFF1.271.0021.0021.00
#00000016.5621.001.001.00
##00000016.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#F9E167
Deuteranopia (green-blind)
#FDE778
Tritanopia (blue-blind)
#FFD9CD
Achromatopsia (no color)
#E4E4E4

Design tokens & code

CSS
--color: #f5e772;
/* rgb */ color: rgb(245, 231, 114);
/* oklch */ color: oklch(91.6% 0.139 102.5);
Tailwind
colors: {
  custom: {
    50: '#fbee9e',
    500: '#f5e772',
    950: '#000000',
  },
}
SCSS
$custom: #f5e772;
$custom-light: #fbee9e;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e772",
  "rgb": {
    "r": 245,
    "g": 231,
    "b": 114
  },
  "hsl": {
    "h": 53.588,
    "s": 86.755,
    "l": 70.392
  },
  "oklch": {
    "l": 0.91625,
    "c": 0.1388,
    "h": 102.5
  },
  "luminance": 0.77779
}

Semantic roles & 50–950 ramp

primary
#F5E772
secondary
#3C4CCF
accent
#1AE302
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F5E772

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

Preview Lab → · Contrast checker → · Palette generator →

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