#F5F873#F5F873

#F5F873 is a very light, vivid yellow. Relative luminance 0.878; OKLCH L 95.1% C 0.155 H 110.2°. Best body text is #000000 at 18.56:1 contrast (WCAG AA passes).

Color values

HEX#F5F873
RGBrgb(245, 248, 115)
HSLhsl(61, 90%, 71%)
HSVhsv(61, 54%, 97%)
CMYKcmyk(1.2%, 0%, 53.6%, 2.7%)
CIE-LABlab(95.07, -18.12, 62.46)
CIE-LCHlch(95.07, 65.03, 106.18°)
OKLaboklab(95.12% -0.0535 0.1455)
OKLCHoklch(95.12% 0.155 110.2)
XYZxyz(74.3199, 87.7868, 29.2459)
Luminance0.8779 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5F873 #7673F8
analogous
#F8B873 #F5F873 #B2F873
triadic
#F5F873 #73F5F8 #F873F5
tetradic
#F5F873 #73F8B8 #7673F8 #F873B2
square
#F5F873 #73F8B8 #7673F8 #F873B2
split-complementary
#F5F873 #73B2F8 #B873F8
monochromatic
#E0E50B #F1F539 #F5F873 #F9FBAD #FDFEE2

Accessibility & contrast

On white

1.13
#F5F873 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.56
#F5F873 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5F873
18.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5F873#FFFFFF#000000##000000
##F5F8731.001.1318.5618.56
#FFFFFF1.131.0021.0021.00
#00000018.5621.001.001.00
##00000018.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF66
Deuteranopia (green-blind)
#FFF37A
Tritanopia (blue-blind)
#FFEBDB
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f5f873;
/* rgb */ color: rgb(245, 248, 115);
/* oklch */ color: oklch(95.1% 0.155 110.2);
Tailwind
colors: {
  custom: {
    50: '#fbfa9f',
    500: '#f5f873',
    950: '#000000',
  },
}
SCSS
$custom: #f5f873;
$custom-light: #fbfa9f;
$custom-dark: #000000;
JSON
{
  "hex": "#f5f873",
  "rgb": {
    "r": 245,
    "g": 248,
    "b": 115
  },
  "hsl": {
    "h": 61.353,
    "s": 90.476,
    "l": 71.176
  },
  "oklch": {
    "l": 0.95123,
    "c": 0.15508,
    "h": 110.2
  },
  "luminance": 0.87785
}

Semantic roles & 50–950 ramp

primary
#F5F873
secondary
#3F3CD3
accent
#00E605
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F5F873

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

Preview Lab → · Contrast checker → · Palette generator →

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