#F2F172#F2F172

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

Color values

HEX#F2F172
RGBrgb(242, 241, 114)
HSLhsl(60, 83%, 70%)
HSVhsv(60, 53%, 95%)
CMYKcmyk(0%, 0.4%, 52.9%, 5.1%)
CIE-LABlab(93.02, -15.99, 60.49)
CIE-LCHlch(93.02, 62.56, 104.80°)
OKLaboklab(93.43% -0.0474 0.1412)
OKLCHoklch(93.43% 0.149 108.6)
XYZxyz(71.1124, 83.0046, 28.1918)
Luminance0.8300 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F172 #7273F2
analogous
#F2B172 #F2F172 #B3F272
triadic
#F2F172 #72F2F1 #F172F2
tetradic
#F2F172 #72F2B1 #7273F2 #F272B3
square
#F2F172 #72F2B1 #7273F2 #F272B3
split-complementary
#F2F172 #72B3F2 #B172F2
monochromatic
#D6D414 #EDEB3A #F2F172 #F7F7AA #FCFCE2

Accessibility & contrast

On white

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

On black

17.60
#F2F172 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F172
17.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F172#FFFFFF#000000##000000
##F2F1721.001.1917.6017.60
#FFFFFF1.191.0021.0021.00
#00000017.6021.001.001.00
##00000017.6021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f2f172;
/* rgb */ color: rgb(242, 241, 114);
/* oklch */ color: oklch(93.4% 0.149 108.6);
Tailwind
colors: {
  custom: {
    50: '#f9f59e',
    500: '#f2f172',
    950: '#000000',
  },
}
SCSS
$custom: #f2f172;
$custom-light: #f9f59e;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f172",
  "rgb": {
    "r": 242,
    "g": 241,
    "b": 114
  },
  "hsl": {
    "h": 59.531,
    "s": 83.117,
    "l": 69.804
  },
  "oklch": {
    "l": 0.93426,
    "c": 0.14899,
    "h": 108.6
  },
  "luminance": 0.83003
}

Semantic roles & 50–950 ramp

primary
#F2F172
secondary
#3D3ECC
accent
#08E006
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F172

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

Preview Lab → · Contrast checker → · Palette generator →

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