#F5F87A#F5F87A

#F5F87A is a very light, vivid yellow. Relative luminance 0.880; OKLCH L 95.2% C 0.149 H 110.1°. Best body text is #000000 at 18.59:1 contrast (WCAG AA passes).

Color values

HEX#F5F87A
RGBrgb(245, 248, 122)
HSLhsl(61, 90%, 73%)
HSVhsv(61, 51%, 97%)
CMYKcmyk(1.2%, 0%, 50.8%, 2.7%)
CIE-LABlab(95.14, -17.56, 59.42)
CIE-LCHlch(95.14, 61.96, 106.46°)
OKLaboklab(95.2% -0.0512 0.1397)
OKLCHoklch(95.2% 0.149 110.1)
XYZxyz(74.7381, 87.9541, 31.4484)
Luminance0.8795 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5F87A #7D7AF8
analogous
#F8BC7A #F5F87A #B6F87A
triadic
#F5F87A #7AF5F8 #F87AF5
tetradic
#F5F87A #7AF8BC #7D7AF8 #F87AB6
square
#F5F87A #7AF8BC #7D7AF8 #F87AB6
split-complementary
#F5F87A #7AB6F8 #BC7AF8
monochromatic
#E6EB0C #F1F540 #F5F87A #F9FBB4 #FDFDE2

Accessibility & contrast

On white

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

On black

18.59
#F5F87A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5F87A
18.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5F87A#FFFFFF#000000##000000
##F5F87A1.001.1318.5918.59
#FFFFFF1.131.0021.0021.00
#00000018.5921.001.001.00
##00000018.5921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f5f87a;
/* rgb */ color: rgb(245, 248, 122);
/* oklch */ color: oklch(95.2% 0.149 110.1);
Tailwind
colors: {
  custom: {
    50: '#fbfaa4',
    500: '#f5f87a',
    950: '#000000',
  },
}
SCSS
$custom: #f5f87a;
$custom-light: #fbfaa4;
$custom-dark: #000000;
JSON
{
  "hex": "#f5f87a",
  "rgb": {
    "r": 245,
    "g": 248,
    "b": 122
  },
  "hsl": {
    "h": 61.429,
    "s": 90,
    "l": 72.549
  },
  "oklch": {
    "l": 0.95202,
    "c": 0.14879,
    "h": 110.1
  },
  "luminance": 0.87952
}

Semantic roles & 50–950 ramp

primary
#F5F87A
secondary
#4642D4
accent
#00E605
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F5F87A

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

Preview Lab → · Contrast checker → · Palette generator →

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