#F0F866#F0F866

#F0F866 is a very light, vivid yellow. Relative luminance 0.866; OKLCH L 94.6% C 0.167 H 112.1°. Best body text is #000000 at 18.32:1 contrast (WCAG AA passes).

Color values

HEX#F0F866
RGBrgb(240, 248, 102)
HSLhsl(63, 91%, 69%)
HSVhsv(63, 59%, 97%)
CMYKcmyk(3.2%, 0%, 58.9%, 2.7%)
CIE-LABlab(94.58, -21.04, 67.37)
CIE-LCHlch(94.58, 70.58, 107.34°)
OKLaboklab(94.6% -0.0628 0.1546)
OKLCHoklch(94.6% 0.167 112.1)
XYZxyz(71.9027, 86.6209, 25.4996)
Luminance0.8662 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0F866 #6E66F8
analogous
#F8B766 #F0F866 #A7F866
triadic
#F0F866 #66F0F8 #F866F0
tetradic
#F0F866 #66F8B7 #6E66F8 #F866A7
square
#F0F866 #66F8B7 #6E66F8 #F866A7
split-complementary
#F0F866 #66A7F8 #B766F8
monochromatic
#CEDA0A #EAF52B #F0F866 #F6FBA1 #FBFDDB

Accessibility & contrast

On white

1.15
#F0F866 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.32
#F0F866 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0F866
18.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0F866#FFFFFF#000000##000000
##F0F8661.001.1518.3218.32
#FFFFFF1.151.0021.0021.00
#00000018.3221.001.001.00
##00000018.3221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f0f866;
/* rgb */ color: rgb(240, 248, 102);
/* oklch */ color: oklch(94.6% 0.167 112.1);
Tailwind
colors: {
  custom: {
    50: '#f8fa97',
    500: '#f0f866',
    950: '#000000',
  },
}
SCSS
$custom: #f0f866;
$custom-light: #f8fa97;
$custom-dark: #000000;
JSON
{
  "hex": "#f0f866",
  "rgb": {
    "r": 240,
    "g": 248,
    "b": 102
  },
  "hsl": {
    "h": 63.288,
    "s": 91.25,
    "l": 68.627
  },
  "oklch": {
    "l": 0.94598,
    "c": 0.16691,
    "h": 112.1
  },
  "luminance": 0.86619
}

Semantic roles & 50–950 ramp

primary
#F0F866
secondary
#3931D2
accent
#00E60D
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F0F866

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

Preview Lab → · Contrast checker → · Palette generator →

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