#F2F173#F2F173

#F2F173 is a very light, vivid yellow. Relative luminance 0.830; OKLCH L 93.4% C 0.148 H 108.5°. Best body text is #000000 at 17.61:1 contrast (WCAG AA passes).

Color values

HEX#F2F173
RGBrgb(242, 241, 115)
HSLhsl(60, 83%, 70%)
HSVhsv(60, 52%, 95%)
CMYKcmyk(0%, 0.4%, 52.5%, 5.1%)
CIE-LABlab(93.03, -15.91, 60.05)
CIE-LCHlch(93.03, 62.12, 104.84°)
OKLaboklab(93.44% -0.0471 0.1404)
OKLCHoklch(93.44% 0.148 108.5)
XYZxyz(71.1696, 83.0275, 28.4932)
Luminance0.8303 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F173 #7374F2
analogous
#F2B273 #F2F173 #B3F273
triadic
#F2F173 #73F2F1 #F173F2
tetradic
#F2F173 #73F2B2 #7374F2 #F273B3
square
#F2F173 #73F2B2 #7374F2 #F273B3
split-complementary
#F2F173 #73B3F2 #B273F2
monochromatic
#D7D514 #EDEB3B #F2F173 #F7F7AB #FCFCE3

Accessibility & contrast

On white

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

On black

17.61
#F2F173 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F173
17.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F173#FFFFFF#000000##000000
##F2F1731.001.1917.6117.61
#FFFFFF1.191.0021.0021.00
#00000017.6121.001.001.00
##00000017.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE867
Deuteranopia (green-blind)
#FFED7A
Tritanopia (blue-blind)
#FFE4D5
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #f2f173;
/* rgb */ color: rgb(242, 241, 115);
/* oklch */ color: oklch(93.4% 0.148 108.5);
Tailwind
colors: {
  custom: {
    50: '#f9f59f',
    500: '#f2f173',
    950: '#000000',
  },
}
SCSS
$custom: #f2f173;
$custom-light: #f9f59f;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f173",
  "rgb": {
    "r": 242,
    "g": 241,
    "b": 115
  },
  "hsl": {
    "h": 59.528,
    "s": 83.007,
    "l": 70
  },
  "oklch": {
    "l": 0.93437,
    "c": 0.1481,
    "h": 108.5
  },
  "luminance": 0.83026
}

Semantic roles & 50–950 ramp

primary
#F2F173
secondary
#3D3FCC
accent
#08DF06
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F173

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

Preview Lab → · Contrast checker → · Palette generator →

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