#F5F152#F5F152

#F5F152 is a very light, vivid yellow. Relative luminance 0.829; OKLCH L 93.4% C 0.173 H 107.9°. Best body text is #000000 at 17.59:1 contrast (WCAG AA passes).

Color values

HEX#F5F152
RGBrgb(245, 241, 82)
HSLhsl(59, 89%, 64%)
HSVhsv(59, 67%, 96%)
CMYKcmyk(0%, 1.6%, 66.5%, 3.9%)
CIE-LABlab(92.99, -16.87, 73.71)
CIE-LCHlch(92.99, 75.62, 102.89°)
OKLaboklab(93.37% -0.0534 0.1651)
OKLCHoklch(93.37% 0.173 107.9)
XYZxyz(70.6370, 82.9345, 20.2681)
Luminance0.8293 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5F152 #5256F5
analogous
#F5A052 #F5F152 #A7F552
triadic
#F5F152 #52F5F1 #F152F5
tetradic
#F5F152 #52F5A0 #5256F5 #F552A7
square
#F5F152 #52F5A0 #5256F5 #F552A7
split-complementary
#F5F152 #52A7F5 #A052F5
monochromatic
#C1BD0B #F2EC18 #F5F152 #F8F68C #FCFAC6

Accessibility & contrast

On white

1.19
#F5F152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.59
#F5F152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5F152
17.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5F152#FFFFFF#000000##000000
##F5F1521.001.1917.5917.59
#FFFFFF1.191.0021.0021.00
#00000017.5921.001.001.00
##00000017.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE83A
Deuteranopia (green-blind)
#FFEE5D
Tritanopia (blue-blind)
#FFE2D1
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #f5f152;
/* rgb */ color: rgb(245, 241, 82);
/* oklch */ color: oklch(93.4% 0.173 107.9);
Tailwind
colors: {
  custom: {
    50: '#fcf58b',
    500: '#f5f152',
    950: '#000000',
  },
}
SCSS
$custom: #f5f152;
$custom-light: #fcf58b;
$custom-dark: #000000;
JSON
{
  "hex": "#f5f152",
  "rgb": {
    "r": 245,
    "g": 241,
    "b": 82
  },
  "hsl": {
    "h": 58.528,
    "s": 89.071,
    "l": 64.118
  },
  "oklch": {
    "l": 0.93373,
    "c": 0.17348,
    "h": 107.9
  },
  "luminance": 0.82932
}

Semantic roles & 50–950 ramp

primary
#F5F152
secondary
#2C30BF
accent
#06E600
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #F5F152

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

Preview Lab → · Contrast checker → · Palette generator →

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