#F2F877#F2F877

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

Color values

HEX#F2F877
RGBrgb(242, 248, 119)
HSLhsl(63, 90%, 72%)
HSVhsv(63, 52%, 97%)
CMYKcmyk(2.4%, 0%, 52%, 2.7%)
CIE-LABlab(94.88, -18.98, 60.41)
CIE-LCHlch(94.88, 63.32, 107.44°)
OKLaboklab(94.93% -0.0554 0.1416)
OKLCHoklch(94.93% 0.152 111.4)
XYZxyz(73.5167, 87.3455, 30.4358)
Luminance0.8734 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F877 #7D77F8
analogous
#F8BE77 #F2F877 #B1F877
triadic
#F2F877 #77F2F8 #F877F2
tetradic
#F2F877 #77F8BE #7D77F8 #F877B1
square
#F2F877 #77F8BE #7D77F8 #F877B1
split-complementary
#F2F877 #77B1F8 #BE77F8
monochromatic
#DEE90C #ECF53D #F2F877 #F8FBB1 #FCFEE2

Accessibility & contrast

On white

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

On black

18.47
#F2F877 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F877
18.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F877#FFFFFF#000000##000000
##F2F8771.001.1418.4718.47
#FFFFFF1.141.0021.0021.00
#00000018.4721.001.001.00
##00000018.4721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f2f877;
/* rgb */ color: rgb(242, 248, 119);
/* oklch */ color: oklch(94.9% 0.152 111.4);
Tailwind
colors: {
  custom: {
    50: '#f9faa2',
    500: '#f2f877',
    950: '#000000',
  },
}
SCSS
$custom: #f2f877;
$custom-light: #f9faa2;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f877",
  "rgb": {
    "r": 242,
    "g": 248,
    "b": 119
  },
  "hsl": {
    "h": 62.791,
    "s": 90.21,
    "l": 71.961
  },
  "oklch": {
    "l": 0.94932,
    "c": 0.15204,
    "h": 111.4
  },
  "luminance": 0.87344
}

Semantic roles & 50–950 ramp

primary
#F2F877
secondary
#463FD4
accent
#00E60B
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F877

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

Preview Lab → · Contrast checker → · Palette generator →

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