#F5E27B#F5E27B

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

Color values

HEX#F5E27B
RGBrgb(245, 226, 123)
HSLhsl(51, 86%, 72%)
HSVhsv(51, 50%, 96%)
CMYKcmyk(0%, 7.8%, 49.8%, 3.9%)
CIE-LABlab(89.50, -6.63, 52.27)
CIE-LCHlch(89.50, 52.68, 97.23°)
OKLaboklab(90.73% -0.0198 0.1242)
OKLCHoklch(90.73% 0.126 99.1)
XYZxyz(68.4298, 75.2378, 29.6528)
Luminance0.7523 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E27B #7B8EF5
analogous
#F5A57B #F5E27B #CBF57B
triadic
#F5E27B #7BF5E2 #E27BF5
tetradic
#F5E27B #7BF5A5 #7B8EF5 #F57BCB
square
#F5E27B #7BF5A5 #7B8EF5 #F57BCB
split-complementary
#F5E27B #7BCBF5 #A57BF5
monochromatic
#E4C311 #F1D642 #F5E27B #F9EEB4 #FDF9E3

Accessibility & contrast

On white

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

On black

16.05
#F5E27B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E27B
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E27B#FFFFFF#000000##000000
##F5E27B1.001.3116.0516.05
#FFFFFF1.311.0021.0021.00
#00000016.0521.001.001.00
##00000016.0521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f5e27b;
/* rgb */ color: rgb(245, 226, 123);
/* oklch */ color: oklch(90.7% 0.126 99.1);
Tailwind
colors: {
  custom: {
    50: '#fbeaa3',
    500: '#f5e27b',
    950: '#000000',
  },
}
SCSS
$custom: #f5e27b;
$custom-light: #fbeaa3;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e27b",
  "rgb": {
    "r": 245,
    "g": 226,
    "b": 123
  },
  "hsl": {
    "h": 50.656,
    "s": 85.915,
    "l": 72.157
  },
  "oklch": {
    "l": 0.90725,
    "c": 0.12573,
    "h": 99.1
  },
  "luminance": 0.75235
}

Semantic roles & 50–950 ramp

primary
#F5E27B
secondary
#445AD0
accent
#26E203
background
#FFFEFC
surface
#FFFDF6
border
#D7D5D0
text
#18160F
muted
#868480

Preview Lab

Preview with #F5E27B

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

Preview Lab → · Contrast checker → · Palette generator →

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