#F2F876#F2F876

#F2F876 is a very light, vivid yellow. Relative luminance 0.873; OKLCH L 94.9% C 0.153 H 111.4°. Best body text is #000000 at 18.46:1 contrast (WCAG AA passes).

Color values

HEX#F2F876
RGBrgb(242, 248, 118)
HSLhsl(63, 90%, 72%)
HSVhsv(63, 52%, 97%)
CMYKcmyk(2.4%, 0%, 52.4%, 2.7%)
CIE-LABlab(94.87, -19.06, 60.85)
CIE-LCHlch(94.87, 63.76, 107.39°)
OKLaboklab(94.92% -0.0557 0.1424)
OKLCHoklch(94.92% 0.153 111.4)
XYZxyz(73.4570, 87.3216, 30.1212)
Luminance0.8732 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F876 #7C76F8
analogous
#F8BD76 #F2F876 #B1F876
triadic
#F2F876 #76F2F8 #F876F2
tetradic
#F2F876 #76F8BD #7C76F8 #F876B1
square
#F2F876 #76F8BD #7C76F8 #F876B1
split-complementary
#F2F876 #76B1F8 #BD76F8
monochromatic
#DEE80C #ECF53C #F2F876 #F8FBB0 #FCFEE2

Accessibility & contrast

On white

1.14
#F2F876 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.46
#F2F876 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F876
18.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F876#FFFFFF#000000##000000
##F2F8761.001.1418.4618.46
#FFFFFF1.141.0021.0021.00
#00000018.4621.001.001.00
##00000018.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE69
Deuteranopia (green-blind)
#FFF27D
Tritanopia (blue-blind)
#FFEBDB
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #f2f876;
/* rgb */ color: rgb(242, 248, 118);
/* oklch */ color: oklch(94.9% 0.153 111.4);
Tailwind
colors: {
  custom: {
    50: '#f9faa1',
    500: '#f2f876',
    950: '#000000',
  },
}
SCSS
$custom: #f2f876;
$custom-light: #f9faa1;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f876",
  "rgb": {
    "r": 242,
    "g": 248,
    "b": 118
  },
  "hsl": {
    "h": 62.769,
    "s": 90.278,
    "l": 71.765
  },
  "oklch": {
    "l": 0.9492,
    "c": 0.15295,
    "h": 111.4
  },
  "luminance": 0.8732
}

Semantic roles & 50–950 ramp

primary
#F2F876
secondary
#453FD4
accent
#00E60B
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F876

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

Preview Lab → · Contrast checker → · Palette generator →

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