#F2F873#F2F873

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

Color values

HEX#F2F873
RGBrgb(242, 248, 115)
HSLhsl(63, 90%, 71%)
HSVhsv(63, 54%, 97%)
CMYKcmyk(2.4%, 0%, 53.6%, 2.7%)
CIE-LABlab(94.84, -19.30, 62.14)
CIE-LCHlch(94.84, 65.07, 107.25°)
OKLaboklab(94.89% -0.0567 0.1449)
OKLCHoklch(94.89% 0.156 111.4)
XYZxyz(73.2816, 87.2514, 29.1972)
Luminance0.8725 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F873 #7973F8
analogous
#F8BB73 #F2F873 #AFF873
triadic
#F2F873 #73F2F8 #F873F2
tetradic
#F2F873 #73F8BB #7973F8 #F873AF
square
#F2F873 #73F8BB #7973F8 #F873AF
split-complementary
#F2F873 #73AFF8 #BB73F8
monochromatic
#DBE50B #EDF539 #F2F873 #F7FBAD #FCFEE2

Accessibility & contrast

On white

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

On black

18.45
#F2F873 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F873
18.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F873#FFFFFF#000000##000000
##F2F8731.001.1418.4518.45
#FFFFFF1.141.0021.0021.00
#00000018.4521.001.001.00
##00000018.4521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f2f873;
/* rgb */ color: rgb(242, 248, 115);
/* oklch */ color: oklch(94.9% 0.156 111.4);
Tailwind
colors: {
  custom: {
    50: '#f9fa9f',
    500: '#f2f873',
    950: '#000000',
  },
}
SCSS
$custom: #f2f873;
$custom-light: #f9fa9f;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f873",
  "rgb": {
    "r": 242,
    "g": 248,
    "b": 115
  },
  "hsl": {
    "h": 62.707,
    "s": 90.476,
    "l": 71.176
  },
  "oklch": {
    "l": 0.94887,
    "c": 0.15562,
    "h": 111.4
  },
  "luminance": 0.8725
}

Semantic roles & 50–950 ramp

primary
#F2F873
secondary
#433CD3
accent
#00E60A
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F873

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

Preview Lab → · Contrast checker → · Palette generator →

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