#F2FB8A#F2FB8A

#F2FB8A is a very light, vivid yellow. Relative luminance 0.897; OKLCH L 95.8% C 0.137 H 112.7°. Best body text is #000000 at 18.94:1 contrast (WCAG AA passes).

Color values

HEX#F2FB8A
RGBrgb(242, 251, 138)
HSLhsl(65, 93%, 76%)
HSVhsv(65, 45%, 98%)
CMYKcmyk(3.6%, 0%, 45%, 1.6%)
CIE-LABlab(95.88, -18.74, 52.86)
CIE-LCHlch(95.88, 56.09, 109.52°)
OKLaboklab(95.79% -0.053 0.1266)
OKLCHoklch(95.79% 0.137 112.7)
XYZxyz(75.7037, 89.7078, 37.3672)
Luminance0.8971 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2FB8A #938AFB
analogous
#FBCC8A #F2FB8A #BAFB8A
triadic
#F2FB8A #8AF2FB #FB8AF2
tetradic
#F2FB8A #8AFBCC #938AFB #FB8ABA
square
#F2FB8A #8AFBCC #938AFB #FB8ABA
split-complementary
#F2FB8A #8ABAFB #CC8AFB
monochromatic
#E5F714 #EBF94F #F2FB8A #F9FDC5 #FCFEE1

Accessibility & contrast

On white

1.11
#F2FB8A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.94
#F2FB8A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2FB8A
18.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2FB8A#FFFFFF#000000##000000
##F2FB8A1.001.1118.9418.94
#FFFFFF1.111.0021.0021.00
#00000018.9421.001.001.00
##00000018.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF280
Deuteranopia (green-blind)
#FFF590
Tritanopia (blue-blind)
#FEEFE0
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #f2fb8a;
/* rgb */ color: rgb(242, 251, 138);
/* oklch */ color: oklch(95.8% 0.137 112.7);
Tailwind
colors: {
  custom: {
    50: '#f8fcae',
    500: '#f2fb8a',
    950: '#000000',
  },
}
SCSS
$custom: #f2fb8a;
$custom-light: #f8fcae;
$custom-dark: #000000;
JSON
{
  "hex": "#f2fb8a",
  "rgb": {
    "r": 242,
    "g": 251,
    "b": 138
  },
  "hsl": {
    "h": 64.779,
    "s": 93.388,
    "l": 76.275
  },
  "oklch": {
    "l": 0.9579,
    "c": 0.13727,
    "h": 112.7
  },
  "luminance": 0.89707
}

Semantic roles & 50–950 ramp

primary
#F2FB8A
secondary
#5A4FDA
accent
#00E612
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#171710
muted
#858581

Preview Lab

Preview with #F2FB8A

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

Preview Lab → · Contrast checker → · Palette generator →

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