#F5F87F#F5F87F

#F5F87F is a very light, vivid yellow. Relative luminance 0.881; OKLCH L 95.3% C 0.144 H 110.1°. Best body text is #000000 at 18.62:1 contrast (WCAG AA passes).

Color values

HEX#F5F87F
RGBrgb(245, 248, 127)
HSLhsl(61, 90%, 74%)
HSVhsv(61, 49%, 97%)
CMYKcmyk(1.2%, 0%, 48.8%, 2.7%)
CIE-LABlab(95.20, -17.14, 57.21)
CIE-LCHlch(95.20, 59.72, 106.68°)
OKLaboklab(95.26% -0.0496 0.1353)
OKLCHoklch(95.26% 0.144 110.1)
XYZxyz(75.0559, 88.0812, 33.1221)
Luminance0.8808 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5F87F #827FF8
analogous
#F8BE7F #F5F87F #B8F87F
triadic
#F5F87F #7FF5F8 #F87FF5
tetradic
#F5F87F #7FF8BE #827FF8 #F87FB8
square
#F5F87F #7FF8BE #827FF8 #F87FB8
split-complementary
#F5F87F #7FB8F8 #BE7FF8
monochromatic
#EAF00D #F0F545 #F5F87F #FAFBB9 #FDFDE2

Accessibility & contrast

On white

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

On black

18.62
#F5F87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5F87F
18.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5F87F#FFFFFF#000000##000000
##F5F87F1.001.1318.6218.62
#FFFFFF1.131.0021.0021.00
#00000018.6221.001.001.00
##00000018.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF74
Deuteranopia (green-blind)
#FFF385
Tritanopia (blue-blind)
#FFEBDC
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f5f87f;
/* rgb */ color: rgb(245, 248, 127);
/* oklch */ color: oklch(95.3% 0.144 110.1);
Tailwind
colors: {
  custom: {
    50: '#fafaa7',
    500: '#f5f87f',
    950: '#000000',
  },
}
SCSS
$custom: #f5f87f;
$custom-light: #fafaa7;
$custom-dark: #000000;
JSON
{
  "hex": "#f5f87f",
  "rgb": {
    "r": 245,
    "g": 248,
    "b": 127
  },
  "hsl": {
    "h": 61.488,
    "s": 89.63,
    "l": 73.529
  },
  "oklch": {
    "l": 0.95262,
    "c": 0.1441,
    "h": 110.1
  },
  "luminance": 0.8808
}

Semantic roles & 50–950 ramp

primary
#F5F87F
secondary
#4A46D5
accent
#00E606
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#181710
muted
#868580

Preview Lab

Preview with #F5F87F

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

Preview Lab → · Contrast checker → · Palette generator →

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