#F2F862#F2F862

#F2F862 is a very light, vivid yellow. Relative luminance 0.869; OKLCH L 94.7% C 0.170 H 111.4°. Best body text is #000000 at 18.38:1 contrast (WCAG AA passes).

Color values

HEX#F2F862
RGBrgb(242, 248, 98)
HSLhsl(62, 91%, 68%)
HSVhsv(62, 60%, 97%)
CMYKcmyk(2.4%, 0%, 60.5%, 2.7%)
CIE-LABlab(94.69, -20.51, 69.19)
CIE-LCHlch(94.69, 72.16, 106.51°)
OKLaboklab(94.72% -0.0619 0.1579)
OKLCHoklch(94.72% 0.17 111.4)
XYZxyz(72.3920, 86.8956, 24.5120)
Luminance0.8689 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F862 #6862F8
analogous
#F8B362 #F2F862 #A7F862
triadic
#F2F862 #62F2F8 #F862F2
tetradic
#F2F862 #62F8B3 #6862F8 #F862A7
square
#F2F862 #62F8B3 #6862F8 #F862A7
split-complementary
#F2F862 #62A7F8 #B362F8
monochromatic
#CED60A #EDF527 #F2F862 #F7FB9D #FCFDD7

Accessibility & contrast

On white

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

On black

18.38
#F2F862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F862
18.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F862#FFFFFF#000000##000000
##F2F8621.001.1418.3818.38
#FFFFFF1.141.0021.0021.00
#00000018.3821.001.001.00
##00000018.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE50
Deuteranopia (green-blind)
#FFF26B
Tritanopia (blue-blind)
#FFEAD9
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #f2f862;
/* rgb */ color: rgb(242, 248, 98);
/* oklch */ color: oklch(94.7% 0.170 111.4);
Tailwind
colors: {
  custom: {
    50: '#f9fa95',
    500: '#f2f862',
    950: '#000000',
  },
}
SCSS
$custom: #f2f862;
$custom-light: #f9fa95;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f862",
  "rgb": {
    "r": 242,
    "g": 248,
    "b": 98
  },
  "hsl": {
    "h": 62.4,
    "s": 91.463,
    "l": 67.843
  },
  "oklch": {
    "l": 0.94718,
    "c": 0.16961,
    "h": 111.4
  },
  "luminance": 0.86894
}

Semantic roles & 50–950 ramp

primary
#F2F862
secondary
#342ED0
accent
#00E609
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F2F862

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

Preview Lab → · Contrast checker → · Palette generator →

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