#F2FA52#F2FA52

#F2FA52 is a very light, vivid yellow. Relative luminance 0.879; OKLCH L 95.0% C 0.183 H 112.1°. Best body text is #000000 at 18.57:1 contrast (WCAG AA passes).

Color values

HEX#F2FA52
RGBrgb(242, 250, 82)
HSLhsl(63, 94%, 65%)
HSVhsv(63, 67%, 98%)
CMYKcmyk(3.2%, 0%, 67.2%, 2%)
CIE-LABlab(95.10, -22.40, 75.76)
CIE-LCHlch(95.10, 79.01, 106.47°)
OKLaboklab(95.01% -0.0687 0.1695)
OKLCHoklch(95.01% 0.183 112.1)
XYZxyz(72.3287, 87.8593, 21.1294)
Luminance0.8786 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2FA52 #5A52FA
analogous
#FAAE52 #F2FA52 #9EFA52
triadic
#F2FA52 #52F2FA #FA52F2
tetradic
#F2FA52 #52FAAE #5A52FA #FA529E
square
#F2FA52 #52FAAE #5A52FA #FA529E
split-complementary
#F2FA52 #529EFA #AE52FA
monochromatic
#C2CC06 #EEF817 #F2FA52 #F6FC8D #FBFDC9

Accessibility & contrast

On white

1.13
#F2FA52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.57
#F2FA52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2FA52
18.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2FA52#FFFFFF#000000##000000
##F2FA521.001.1318.5718.57
#FFFFFF1.131.0021.0021.00
#00000018.5721.001.001.00
##00000018.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF38
Deuteranopia (green-blind)
#FFF35E
Tritanopia (blue-blind)
#FFEBD9
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f2fa52;
/* rgb */ color: rgb(242, 250, 82);
/* oklch */ color: oklch(95.0% 0.183 112.1);
Tailwind
colors: {
  custom: {
    50: '#fafb8c',
    500: '#f2fa52',
    950: '#000000',
  },
}
SCSS
$custom: #f2fa52;
$custom-light: #fafb8c;
$custom-dark: #000000;
JSON
{
  "hex": "#f2fa52",
  "rgb": {
    "r": 242,
    "g": 250,
    "b": 82
  },
  "hsl": {
    "h": 62.857,
    "s": 94.382,
    "l": 65.098
  },
  "oklch": {
    "l": 0.95007,
    "c": 0.18289,
    "h": 112.1
  },
  "luminance": 0.87858
}

Semantic roles & 50–950 ramp

primary
#F2FA52
secondary
#3029C7
accent
#00E60B
background
#FFFFFC
surface
#FFFFF4
border
#D7D7CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #F2FA52

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

Preview Lab → · Contrast checker → · Palette generator →

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