#F2F262#F2F262

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

Color values

HEX#F2F262
RGBrgb(242, 242, 98)
HSLhsl(60, 85%, 67%)
HSVhsv(60, 60%, 95%)
CMYKcmyk(0%, 0%, 59.5%, 5.1%)
CIE-LABlab(93.13, -17.62, 67.50)
CIE-LCHlch(93.13, 69.76, 104.63°)
OKLaboklab(93.47% -0.0537 0.1543)
OKLCHoklch(93.47% 0.163 109.2)
XYZxyz(70.5768, 83.2653, 23.9069)
Luminance0.8326 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F262 #6262F2
analogous
#F2AA62 #F2F262 #AAF262
triadic
#F2F262 #62F2F2 #F262F2
tetradic
#F2F262 #62F2AA #6262F2 #F262AA
square
#F2F262 #62F2AA #6262F2 #F262AA
split-complementary
#F2F262 #62AAF2 #AA62F2
monochromatic
#C9C911 #EDED29 #F2F262 #F7F79B #FBFBD3

Accessibility & contrast

On white

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

On black

17.65
#F2F262 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F262
17.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F262#FFFFFF#000000##000000
##F2F2621.001.1917.6517.65
#FFFFFF1.191.0021.0021.00
#00000017.6521.001.001.00
##00000017.6521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f2f262;
/* rgb */ color: rgb(242, 242, 98);
/* oklch */ color: oklch(93.5% 0.163 109.2);
Tailwind
colors: {
  custom: {
    50: '#f9f694',
    500: '#f2f262',
    950: '#000000',
  },
}
SCSS
$custom: #f2f262;
$custom-light: #f9f694;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f262",
  "rgb": {
    "r": 242,
    "g": 242,
    "b": 98
  },
  "hsl": {
    "h": 60,
    "s": 84.706,
    "l": 66.667
  },
  "oklch": {
    "l": 0.9347,
    "c": 0.16342,
    "h": 109.2
  },
  "luminance": 0.83263
}

Semantic roles & 50–950 ramp

primary
#F2F262
secondary
#3333C6
accent
#04E104
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F2F262

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

Preview Lab → · Contrast checker → · Palette generator →

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