#F5E27A#F5E27A

#F5E27A is a very light, vivid yellow. Relative luminance 0.752; OKLCH L 90.7% C 0.127 H 99.2°. Best body text is #000000 at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#F5E27A
RGBrgb(245, 226, 122)
HSLhsl(51, 86%, 72%)
HSVhsv(51, 50%, 96%)
CMYKcmyk(0%, 7.8%, 50.2%, 3.9%)
CIE-LABlab(89.49, -6.71, 52.73)
CIE-LCHlch(89.49, 53.15, 97.26°)
OKLaboklab(90.71% -0.0202 0.1251)
OKLCHoklch(90.71% 0.127 99.2)
XYZxyz(68.3675, 75.2129, 29.3248)
Luminance0.7521 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E27A #7A8DF5
analogous
#F5A57A #F5E27A #CAF57A
triadic
#F5E27A #7AF5E2 #E27AF5
tetradic
#F5E27A #7AF5A5 #7A8DF5 #F57ACA
square
#F5E27A #7AF5A5 #7A8DF5 #F57ACA
split-complementary
#F5E27A #7ACAF5 #A57AF5
monochromatic
#E3C311 #F1D641 #F5E27A #F9EEB3 #FDF9E3

Accessibility & contrast

On white

1.31
#F5E27A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.04
#F5E27A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E27A
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E27A#FFFFFF#000000##000000
##F5E27A1.001.3116.0416.04
#FFFFFF1.311.0021.0021.00
#00000016.0421.001.001.00
##00000016.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3DD71
Deuteranopia (green-blind)
#F9E47E
Tritanopia (blue-blind)
#FFD5CA
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #f5e27a;
/* rgb */ color: rgb(245, 226, 122);
/* oklch */ color: oklch(90.7% 0.127 99.2);
Tailwind
colors: {
  custom: {
    50: '#fbeaa3',
    500: '#f5e27a',
    950: '#000000',
  },
}
SCSS
$custom: #f5e27a;
$custom-light: #fbeaa3;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e27a",
  "rgb": {
    "r": 245,
    "g": 226,
    "b": 122
  },
  "hsl": {
    "h": 50.732,
    "s": 86.014,
    "l": 71.961
  },
  "oklch": {
    "l": 0.90712,
    "c": 0.1267,
    "h": 99.2
  },
  "luminance": 0.7521
}

Semantic roles & 50–950 ramp

primary
#F5E27A
secondary
#4359D0
accent
#26E303
background
#FFFEFC
surface
#FFFDF6
border
#D7D5D0
text
#18160F
muted
#868480

Preview Lab

Preview with #F5E27A

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

Preview Lab → · Contrast checker → · Palette generator →

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