#F5E252#F5E252

#F5E252 is a very light, vivid yellow. Relative luminance 0.744; OKLCH L 90.3% C 0.160 H 101.7°. Best body text is #000000 at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#F5E252
RGBrgb(245, 226, 82)
HSLhsl(53, 89%, 64%)
HSVhsv(53, 67%, 96%)
CMYKcmyk(0%, 7.8%, 66.5%, 3.9%)
CIE-LABlab(89.12, -9.49, 69.78)
CIE-LCHlch(89.12, 70.42, 97.75°)
OKLaboklab(90.3% -0.0325 0.1568)
OKLCHoklch(90.3% 0.16 101.7)
XYZxyz(66.3783, 74.4172, 18.8485)
Luminance0.7441 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E252 #5265F5
analogous
#F59152 #F5E252 #B7F552
triadic
#F5E252 #52F5E2 #E252F5
tetradic
#F5E252 #52F591 #5265F5 #F552B7
square
#F5E252 #52F591 #5265F5 #F552B7
split-complementary
#F5E252 #52B7F5 #9152F5
monochromatic
#C1AC0B #F2D818 #F5E252 #F8EC8C #FCF5C6

Accessibility & contrast

On white

1.32
#F5E252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.88
#F5E252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E252
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E252#FFFFFF#000000##000000
##F5E2521.001.3215.8815.88
#FFFFFF1.321.0021.0021.00
#00000015.8821.001.001.00
##00000015.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#F6DB3E
Deuteranopia (green-blind)
#FCE35B
Tritanopia (blue-blind)
#FFD3C5
Achromatopsia (no color)
#E0E0E0

Design tokens & code

CSS
--color: #f5e252;
/* rgb */ color: rgb(245, 226, 82);
/* oklch */ color: oklch(90.3% 0.160 101.7);
Tailwind
colors: {
  custom: {
    50: '#fcea8a',
    500: '#f5e252',
    950: '#000000',
  },
}
SCSS
$custom: #f5e252;
$custom-light: #fcea8a;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e252",
  "rgb": {
    "r": 245,
    "g": 226,
    "b": 82
  },
  "hsl": {
    "h": 53.006,
    "s": 89.071,
    "l": 64.118
  },
  "oklch": {
    "l": 0.90296,
    "c": 0.1601,
    "h": 101.7
  },
  "luminance": 0.74414
}

Semantic roles & 50–950 ramp

primary
#F5E252
secondary
#2C3DBF
accent
#1BE600
background
#FFFEFC
surface
#FFFDF4
border
#D7D5CE
text
#18160C
muted
#86847F

Preview Lab

Preview with #F5E252

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

Preview Lab → · Contrast checker → · Palette generator →

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