#F5E158#F5E158

#F5E158 is a very light, vivid yellow. Relative luminance 0.740; OKLCH L 90.1% C 0.155 H 101.0°. Best body text is #000000 at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#F5E158
RGBrgb(245, 225, 88)
HSLhsl(52, 89%, 65%)
HSVhsv(52, 64%, 96%)
CMYKcmyk(0%, 8.2%, 64.1%, 3.9%)
CIE-LABlab(88.91, -8.66, 67.16)
CIE-LCHlch(88.91, 67.72, 97.34°)
OKLaboklab(90.14% -0.0295 0.1522)
OKLCHoklch(90.14% 0.155 101)
XYZxyz(66.3456, 73.9703, 20.0136)
Luminance0.7397 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E158 #586CF5
analogous
#F59358 #F5E158 #BAF558
triadic
#F5E158 #58F5E1 #E158F5
tetradic
#F5E158 #58F593 #586CF5 #F558BA
square
#F5E158 #58F593 #586CF5 #F558BA
split-complementary
#F5E158 #58BAF5 #9358F5
monochromatic
#C7AF0C #F2D71E #F5E158 #F8EB92 #FCF6CB

Accessibility & contrast

On white

1.33
#F5E158 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.79
#F5E158 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E158
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E158#FFFFFF#000000##000000
##F5E1581.001.3315.7915.79
#FFFFFF1.331.0021.0021.00
#00000015.7921.001.001.00
##00000015.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#F5DB47
Deuteranopia (green-blind)
#FBE360
Tritanopia (blue-blind)
#FFD2C4
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f5e158;
/* rgb */ color: rgb(245, 225, 88);
/* oklch */ color: oklch(90.1% 0.155 101.0);
Tailwind
colors: {
  custom: {
    50: '#fcea8d',
    500: '#f5e158',
    950: '#000000',
  },
}
SCSS
$custom: #f5e158;
$custom-light: #fcea8d;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e158",
  "rgb": {
    "r": 245,
    "g": 225,
    "b": 88
  },
  "hsl": {
    "h": 52.357,
    "s": 88.701,
    "l": 65.294
  },
  "oklch": {
    "l": 0.90143,
    "c": 0.15499,
    "h": 101
  },
  "luminance": 0.73967
}

Semantic roles & 50–950 ramp

primary
#F5E158
secondary
#2E41C3
accent
#1DE500
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18160D
muted
#86847F

Preview Lab

Preview with #F5E158

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

Preview Lab → · Contrast checker → · Palette generator →

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