#F2F266#F2F266

#F2F266 is a very light, vivid yellow. Relative luminance 0.833; OKLCH L 93.5% C 0.160 H 109.1°. Best body text is #000000 at 17.67:1 contrast (WCAG AA passes).

Color values

HEX#F2F266
RGBrgb(242, 242, 102)
HSLhsl(60, 84%, 67%)
HSVhsv(60, 58%, 95%)
CMYKcmyk(0%, 0%, 57.9%, 5.1%)
CIE-LABlab(93.16, -17.35, 65.87)
CIE-LCHlch(93.16, 68.11, 104.76°)
OKLaboklab(93.51% -0.0525 0.1514)
OKLCHoklch(93.51% 0.16 109.1)
XYZxyz(70.7704, 83.3427, 24.9266)
Luminance0.8334 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F266 #6666F2
analogous
#F2AC66 #F2F266 #ACF266
triadic
#F2F266 #66F2F2 #F266F2
tetradic
#F2F266 #66F2AC #6666F2 #F266AC
square
#F2F266 #66F2AC #6666F2 #F266AC
split-complementary
#F2F266 #66ACF2 #AC66F2
monochromatic
#CCCC11 #EDED2E #F2F266 #F7F79E #FCFCD7

Accessibility & contrast

On white

1.19
#F2F266 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.67
#F2F266 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F266
17.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F266#FFFFFF#000000##000000
##F2F2661.001.1917.6717.67
#FFFFFF1.191.0021.0021.00
#00000017.6721.001.001.00
##00000017.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE956
Deuteranopia (green-blind)
#FFEE6E
Tritanopia (blue-blind)
#FFE4D4
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #f2f266;
/* rgb */ color: rgb(242, 242, 102);
/* oklch */ color: oklch(93.5% 0.160 109.1);
Tailwind
colors: {
  custom: {
    50: '#f9f697',
    500: '#f2f266',
    950: '#000000',
  },
}
SCSS
$custom: #f2f266;
$custom-light: #f9f697;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f266",
  "rgb": {
    "r": 242,
    "g": 242,
    "b": 102
  },
  "hsl": {
    "h": 60,
    "s": 84.337,
    "l": 67.451
  },
  "oklch": {
    "l": 0.93507,
    "c": 0.16024,
    "h": 109.1
  },
  "luminance": 0.83341
}

Semantic roles & 50–950 ramp

primary
#F2F266
secondary
#3434C9
accent
#05E105
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F2F266

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

Preview Lab → · Contrast checker → · Palette generator →

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