#F2FB74#F2FB74

#F2FB74 is a very light, vivid yellow. Relative luminance 0.891; OKLCH L 95.5% C 0.158 H 112.5°. Best body text is #000000 at 18.83:1 contrast (WCAG AA passes).

Color values

HEX#F2FB74
RGBrgb(242, 251, 116)
HSLhsl(64, 94%, 72%)
HSVhsv(64, 54%, 98%)
CMYKcmyk(3.6%, 0%, 53.8%, 1.6%)
CIE-LABlab(95.64, -20.66, 62.61)
CIE-LCHlch(95.64, 65.93, 108.26°)
OKLaboklab(95.52% -0.0605 0.146)
OKLCHoklch(95.52% 0.158 112.5)
XYZxyz(74.2691, 89.1340, 29.8118)
Luminance0.8913 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2FB74 #7D74FB
analogous
#FBC174 #F2FB74 #AFFB74
triadic
#F2FB74 #74F2FB #FB74F2
tetradic
#F2FB74 #74FBC1 #7D74FB #FB74AF
square
#F2FB74 #74FBC1 #7D74FB #FB74AF
split-complementary
#F2FB74 #74AFFB #C174FB
monochromatic
#DEEE07 #ECF939 #F2FB74 #F8FDAF #FCFEE1

Accessibility & contrast

On white

1.12
#F2FB74 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.83
#F2FB74 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2FB74
18.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2FB74#FFFFFF#000000##000000
##F2FB741.001.1218.8318.83
#FFFFFF1.121.0021.0021.00
#00000018.8321.001.001.00
##00000018.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF166
Deuteranopia (green-blind)
#FFF47C
Tritanopia (blue-blind)
#FFEEDD
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #f2fb74;
/* rgb */ color: rgb(242, 251, 116);
/* oklch */ color: oklch(95.5% 0.158 112.5);
Tailwind
colors: {
  custom: {
    50: '#f9fca0',
    500: '#f2fb74',
    950: '#000000',
  },
}
SCSS
$custom: #f2fb74;
$custom-light: #f9fca0;
$custom-dark: #000000;
JSON
{
  "hex": "#f2fb74",
  "rgb": {
    "r": 242,
    "g": 251,
    "b": 116
  },
  "hsl": {
    "h": 64,
    "s": 94.406,
    "l": 71.961
  },
  "oklch": {
    "l": 0.95522,
    "c": 0.15805,
    "h": 112.5
  },
  "luminance": 0.89133
}

Semantic roles & 50–950 ramp

primary
#F2FB74
secondary
#463CD7
accent
#00E60F
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F2FB74

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

Preview Lab → · Contrast checker → · Palette generator →

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