#F5F866#F5F866

#F5F866 is a very light, vivid yellow. Relative luminance 0.875; OKLCH L 95.0% C 0.166 H 110.3°. Best body text is #000000 at 18.50:1 contrast (WCAG AA passes).

Color values

HEX#F5F866
RGBrgb(245, 248, 102)
HSLhsl(61, 91%, 69%)
HSVhsv(61, 59%, 97%)
CMYKcmyk(1.2%, 0%, 58.9%, 2.7%)
CIE-LABlab(94.95, -19.05, 67.89)
CIE-LCHlch(94.95, 70.51, 105.68°)
OKLaboklab(94.99% -0.0575 0.1556)
OKLCHoklch(94.99% 0.166 110.3)
XYZxyz(73.6239, 87.5084, 25.5803)
Luminance0.8751 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5F866 #6966F8
analogous
#F8B266 #F5F866 #ACF866
triadic
#F5F866 #66F5F8 #F866F5
tetradic
#F5F866 #66F8B2 #6966F8 #F866AC
square
#F5F866 #66F8B2 #6966F8 #F866AC
split-complementary
#F5F866 #66ACF8 #B266F8
monochromatic
#D5DA0A #F1F52B #F5F866 #F9FBA1 #FDFDDB

Accessibility & contrast

On white

1.14
#F5F866 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.50
#F5F866 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5F866
18.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5F866#FFFFFF#000000##000000
##F5F8661.001.1418.5018.50
#FFFFFF1.141.0021.0021.00
#00000018.5021.001.001.00
##00000018.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE55
Deuteranopia (green-blind)
#FFF36F
Tritanopia (blue-blind)
#FFEAD9
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #f5f866;
/* rgb */ color: rgb(245, 248, 102);
/* oklch */ color: oklch(95.0% 0.166 110.3);
Tailwind
colors: {
  custom: {
    50: '#fbfa97',
    500: '#f5f866',
    950: '#000000',
  },
}
SCSS
$custom: #f5f866;
$custom-light: #fbfa97;
$custom-dark: #000000;
JSON
{
  "hex": "#f5f866",
  "rgb": {
    "r": 245,
    "g": 248,
    "b": 102
  },
  "hsl": {
    "h": 61.233,
    "s": 91.25,
    "l": 68.627
  },
  "oklch": {
    "l": 0.94991,
    "c": 0.16592,
    "h": 110.3
  },
  "luminance": 0.87507
}

Semantic roles & 50–950 ramp

primary
#F5F866
secondary
#3431D2
accent
#00E605
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F5F866

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

Preview Lab → · Contrast checker → · Palette generator →

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