#F2F166#F2F166

#F2F166 is a very light, vivid yellow. Relative luminance 0.827; OKLCH L 93.3% C 0.159 H 108.7°. Best body text is #000000 at 17.55:1 contrast (WCAG AA passes).

Color values

HEX#F2F166
RGBrgb(242, 241, 102)
HSLhsl(60, 84%, 67%)
HSVhsv(60, 58%, 95%)
CMYKcmyk(0%, 0.4%, 57.9%, 5.1%)
CIE-LABlab(92.90, -16.87, 65.58)
CIE-LCHlch(92.90, 67.71, 104.42°)
OKLaboklab(93.3% -0.0512 0.1508)
OKLCHoklch(93.3% 0.159 108.7)
XYZxyz(70.4736, 82.7491, 24.8276)
Luminance0.8275 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F166 #6667F2
analogous
#F2AB66 #F2F166 #ADF266
triadic
#F2F166 #66F2F1 #F166F2
tetradic
#F2F166 #66F2AB #6667F2 #F266AD
square
#F2F166 #66F2AB #6667F2 #F266AD
split-complementary
#F2F166 #66ADF2 #AB66F2
monochromatic
#CCCB11 #EDEC2E #F2F166 #F7F69E #FCFBD7

Accessibility & contrast

On white

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

On black

17.55
#F2F166 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F166
17.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F166#FFFFFF#000000##000000
##F2F1661.001.2017.5517.55
#FFFFFF1.201.0021.0021.00
#00000017.5521.001.001.00
##00000017.5521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f2f166;
/* rgb */ color: rgb(242, 241, 102);
/* oklch */ color: oklch(93.3% 0.159 108.7);
Tailwind
colors: {
  custom: {
    50: '#f9f597',
    500: '#f2f166',
    950: '#000000',
  },
}
SCSS
$custom: #f2f166;
$custom-light: #f9f597;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f166",
  "rgb": {
    "r": 242,
    "g": 241,
    "b": 102
  },
  "hsl": {
    "h": 59.571,
    "s": 84.337,
    "l": 67.451
  },
  "oklch": {
    "l": 0.933,
    "c": 0.15922,
    "h": 108.7
  },
  "luminance": 0.82747
}

Semantic roles & 50–950 ramp

primary
#F2F166
secondary
#3435C9
accent
#06E105
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F2F166

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

Preview Lab → · Contrast checker → · Palette generator →

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