#F2F151#F2F151

#F2F151 is a very light, vivid yellow. Relative luminance 0.824; OKLCH L 93.1% C 0.175 H 109.0°. Best body text is #000000 at 17.48:1 contrast (WCAG AA passes).

Color values

HEX#F2F151
RGBrgb(242, 241, 81)
HSLhsl(60, 86%, 63%)
HSVhsv(60, 67%, 95%)
CMYKcmyk(0%, 0.4%, 66.5%, 5.1%)
CIE-LABlab(92.74, -18.14, 73.76)
CIE-LCHlch(92.74, 75.96, 103.81°)
OKLaboklab(93.12% -0.0569 0.1651)
OKLCHoklch(93.12% 0.175 109)
XYZxyz(69.5608, 82.3840, 20.0205)
Luminance0.8238 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F151 #5152F2
analogous
#F2A051 #F2F151 #A3F251
triadic
#F2F151 #51F2F1 #F151F2
tetradic
#F2F151 #51F2A0 #5152F2 #F251A3
square
#F2F151 #51F2A0 #5152F2 #F251A3
split-complementary
#F2F151 #51A3F2 #A051F2
monochromatic
#BBBA0E #EEEC18 #F2F151 #F6F68A #FBFAC3

Accessibility & contrast

On white

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

On black

17.48
#F2F151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F151
17.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F151#FFFFFF#000000##000000
##F2F1511.001.2017.4817.48
#FFFFFF1.201.0021.0021.00
#00000017.4821.001.001.00
##00000017.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE739
Deuteranopia (green-blind)
#FFED5C
Tritanopia (blue-blind)
#FFE2D1
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #f2f151;
/* rgb */ color: rgb(242, 241, 81);
/* oklch */ color: oklch(93.1% 0.175 109.0);
Tailwind
colors: {
  custom: {
    50: '#faf58a',
    500: '#f2f151',
    950: '#000000',
  },
}
SCSS
$custom: #f2f151;
$custom-light: #faf58a;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f151",
  "rgb": {
    "r": 242,
    "g": 241,
    "b": 81
  },
  "hsl": {
    "h": 59.627,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.93121,
    "c": 0.17462,
    "h": 109
  },
  "luminance": 0.82382
}

Semantic roles & 50–950 ramp

primary
#F2F151
secondary
#2E2FB9
accent
#04E303
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170C
muted
#86857F

Preview Lab

Preview with #F2F151

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

Preview Lab → · Contrast checker → · Palette generator →

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