#F2F162#F2F162

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

Color values

HEX#F2F162
RGBrgb(242, 241, 98)
HSLhsl(60, 85%, 67%)
HSVhsv(60, 60%, 95%)
CMYKcmyk(0%, 0.4%, 59.5%, 5.1%)
CIE-LABlab(92.87, -17.13, 67.22)
CIE-LCHlch(92.87, 69.37, 104.30°)
OKLaboklab(93.26% -0.0523 0.1538)
OKLCHoklch(93.26% 0.162 108.8)
XYZxyz(70.2800, 82.6716, 23.8080)
Luminance0.8267 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F162 #6263F2
analogous
#F2A962 #F2F162 #ABF262
triadic
#F2F162 #62F2F1 #F162F2
tetradic
#F2F162 #62F2A9 #6263F2 #F262AB
square
#F2F162 #62F2A9 #6263F2 #F262AB
split-complementary
#F2F162 #62ABF2 #A962F2
monochromatic
#C9C811 #EDEC29 #F2F162 #F7F69B #FBFBD3

Accessibility & contrast

On white

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

On black

17.53
#F2F162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F162
17.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F162#FFFFFF#000000##000000
##F2F1621.001.2017.5317.53
#FFFFFF1.201.0021.0021.00
#00000017.5321.001.001.00
##00000017.5321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f2f162;
/* rgb */ color: rgb(242, 241, 98);
/* oklch */ color: oklch(93.3% 0.162 108.8);
Tailwind
colors: {
  custom: {
    50: '#f9f594',
    500: '#f2f162',
    950: '#000000',
  },
}
SCSS
$custom: #f2f162;
$custom-light: #f9f594;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f162",
  "rgb": {
    "r": 242,
    "g": 241,
    "b": 98
  },
  "hsl": {
    "h": 59.583,
    "s": 84.706,
    "l": 66.667
  },
  "oklch": {
    "l": 0.93262,
    "c": 0.16241,
    "h": 108.8
  },
  "luminance": 0.8267
}

Semantic roles & 50–950 ramp

primary
#F2F162
secondary
#3334C6
accent
#06E104
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F2F162

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

Preview Lab → · Contrast checker → · Palette generator →

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