#F5E152#F5E152

#F5E152 is a very light, vivid yellow. Relative luminance 0.739; OKLCH L 90.1% C 0.159 H 101.3°. Best body text is #000000 at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#F5E152
RGBrgb(245, 225, 82)
HSLhsl(53, 89%, 64%)
HSVhsv(53, 67%, 96%)
CMYKcmyk(0%, 8.2%, 66.5%, 3.9%)
CIE-LABlab(88.86, -8.99, 69.51)
CIE-LCHlch(88.86, 70.09, 97.37°)
OKLaboklab(90.09% -0.0311 0.1562)
OKLCHoklch(90.09% 0.159 101.3)
XYZxyz(66.1072, 73.8749, 18.7582)
Luminance0.7387 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E152 #5266F5
analogous
#F59052 #F5E152 #B8F552
triadic
#F5E152 #52F5E1 #E152F5
tetradic
#F5E152 #52F590 #5266F5 #F552B8
square
#F5E152 #52F590 #5266F5 #F552B8
split-complementary
#F5E152 #52B8F5 #9052F5
monochromatic
#C1AB0B #F2D718 #F5E152 #F8EB8C #FCF5C6

Accessibility & contrast

On white

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

On black

15.77
#F5E152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E152
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E152#FFFFFF#000000##000000
##F5E1521.001.3315.7715.77
#FFFFFF1.331.0021.0021.00
#00000015.7721.001.001.00
##00000015.7721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f5e152;
/* rgb */ color: rgb(245, 225, 82);
/* oklch */ color: oklch(90.1% 0.159 101.3);
Tailwind
colors: {
  custom: {
    50: '#fcea8a',
    500: '#f5e152',
    950: '#000000',
  },
}
SCSS
$custom: #f5e152;
$custom-light: #fcea8a;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e152",
  "rgb": {
    "r": 245,
    "g": 225,
    "b": 82
  },
  "hsl": {
    "h": 52.638,
    "s": 89.071,
    "l": 64.118
  },
  "oklch": {
    "l": 0.90093,
    "c": 0.15928,
    "h": 101.3
  },
  "luminance": 0.73872
}

Semantic roles & 50–950 ramp

primary
#F5E152
secondary
#2C3EBF
accent
#1CE600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18160C
muted
#86847F

Preview Lab

Preview with #F5E152

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

Preview Lab → · Contrast checker → · Palette generator →

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