#F2F051#F2F051

#F2F051 is a very light, vivid yellow. Relative luminance 0.818; OKLCH L 92.9% C 0.174 H 108.6°. Best body text is #000000 at 17.36:1 contrast (WCAG AA passes).

Color values

HEX#F2F051
RGBrgb(242, 240, 81)
HSLhsl(59, 86%, 63%)
HSVhsv(59, 67%, 95%)
CMYKcmyk(0%, 0.8%, 66.5%, 5.1%)
CIE-LABlab(92.48, -17.65, 73.50)
CIE-LCHlch(92.48, 75.59, 103.51°)
OKLaboklab(92.91% -0.0555 0.1646)
OKLCHoklch(92.91% 0.174 108.6)
XYZxyz(69.2657, 81.7936, 19.9221)
Luminance0.8179 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F051 #5153F2
analogous
#F2A051 #F2F051 #A3F251
triadic
#F2F051 #51F2F0 #F051F2
tetradic
#F2F051 #51F2A0 #5153F2 #F251A3
square
#F2F051 #51F2A0 #5153F2 #F251A3
split-complementary
#F2F051 #51A3F2 #A051F2
monochromatic
#BBB90E #EEEB18 #F2F051 #F6F58A #FBFAC3

Accessibility & contrast

On white

1.21
#F2F051 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.36
#F2F051 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F051
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F051#FFFFFF#000000##000000
##F2F0511.001.2117.3617.36
#FFFFFF1.211.0021.0021.00
#00000017.3621.001.001.00
##00000017.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE639
Deuteranopia (green-blind)
#FFEC5C
Tritanopia (blue-blind)
#FFE1D0
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #f2f051;
/* rgb */ color: rgb(242, 240, 81);
/* oklch */ color: oklch(92.9% 0.174 108.6);
Tailwind
colors: {
  custom: {
    50: '#faf48a',
    500: '#f2f051',
    950: '#000000',
  },
}
SCSS
$custom: #f2f051;
$custom-light: #faf48a;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f051",
  "rgb": {
    "r": 242,
    "g": 240,
    "b": 81
  },
  "hsl": {
    "h": 59.255,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.92913,
    "c": 0.17366,
    "h": 108.6
  },
  "luminance": 0.81792
}

Semantic roles & 50–950 ramp

primary
#F2F051
secondary
#2E30B9
accent
#06E303
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170C
muted
#86857F

Preview Lab

Preview with #F2F051

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

Preview Lab → · Contrast checker → · Palette generator →

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