#F0F166#F0F166

#F0F166 is a very light, vivid yellow. Relative luminance 0.824; OKLCH L 93.1% C 0.160 H 109.5°. Best body text is #000000 at 17.48:1 contrast (WCAG AA passes).

Color values

HEX#F0F166
RGBrgb(240, 241, 102)
HSLhsl(60, 83%, 67%)
HSVhsv(60, 58%, 95%)
CMYKcmyk(0.4%, 0%, 57.7%, 5.5%)
CIE-LABlab(92.75, -17.67, 65.37)
CIE-LCHlch(92.75, 67.71, 105.12°)
OKLaboklab(93.14% -0.0533 0.1504)
OKLCHoklch(93.14% 0.16 109.5)
XYZxyz(69.7907, 82.3970, 24.7956)
Luminance0.8239 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0F166 #6766F1
analogous
#F1AD66 #F0F166 #AAF166
triadic
#F0F166 #66F0F1 #F166F0
tetradic
#F0F166 #66F1AD #6766F1 #F166AA
square
#F0F166 #66F1AD #6766F1 #F166AA
split-complementary
#F0F166 #66AAF1 #AD66F1
monochromatic
#C9CA12 #EBEC2E #F0F166 #F5F69E #FBFBD6

Accessibility & contrast

On white

1.20
#F0F166 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.48
#F0F166 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0F166
17.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0F166#FFFFFF#000000##000000
##F0F1661.001.2017.4817.48
#FFFFFF1.201.0021.0021.00
#00000017.4821.001.001.00
##00000017.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE856
Deuteranopia (green-blind)
#FFEC6E
Tritanopia (blue-blind)
#FFE3D3
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #f0f166;
/* rgb */ color: rgb(240, 241, 102);
/* oklch */ color: oklch(93.1% 0.160 109.5);
Tailwind
colors: {
  custom: {
    50: '#f8f597',
    500: '#f0f166',
    950: '#000000',
  },
}
SCSS
$custom: #f0f166;
$custom-light: #f8f597;
$custom-dark: #000000;
JSON
{
  "hex": "#f0f166",
  "rgb": {
    "r": 240,
    "g": 241,
    "b": 102
  },
  "hsl": {
    "h": 60.432,
    "s": 83.234,
    "l": 67.255
  },
  "oklch": {
    "l": 0.93139,
    "c": 0.15954,
    "h": 109.5
  },
  "luminance": 0.82395
}

Semantic roles & 50–950 ramp

primary
#F0F166
secondary
#3534C7
accent
#06E007
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F0F166

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

Preview Lab → · Contrast checker → · Palette generator →

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