#F2F870#F2F870

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

Color values

HEX#F2F870
RGBrgb(242, 248, 112)
HSLhsl(63, 91%, 71%)
HSVhsv(63, 55%, 97%)
CMYKcmyk(2.4%, 0%, 54.8%, 2.7%)
CIE-LABlab(94.82, -19.53, 63.42)
CIE-LCHlch(94.82, 66.36, 107.11°)
OKLaboklab(94.86% -0.0577 0.1473)
OKLCHoklch(94.86% 0.158 111.4)
XYZxyz(73.1117, 87.1835, 28.3028)
Luminance0.8718 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F870 #7670F8
analogous
#F8BA70 #F2F870 #AEF870
triadic
#F2F870 #70F2F8 #F870F2
tetradic
#F2F870 #70F8BA #7670F8 #F870AE
square
#F2F870 #70F8BA #7670F8 #F870AE
split-complementary
#F2F870 #70AEF8 #BA70F8
monochromatic
#D9E30B #EDF536 #F2F870 #F7FBAA #FCFEE2

Accessibility & contrast

On white

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

On black

18.44
#F2F870 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F870
18.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F870#FFFFFF#000000##000000
##F2F8701.001.1418.4418.44
#FFFFFF1.141.0021.0021.00
#00000018.4421.001.001.00
##00000018.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE62
Deuteranopia (green-blind)
#FFF278
Tritanopia (blue-blind)
#FFEBDA
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #f2f870;
/* rgb */ color: rgb(242, 248, 112);
/* oklch */ color: oklch(94.9% 0.158 111.4);
Tailwind
colors: {
  custom: {
    50: '#f9fa9d',
    500: '#f2f870',
    950: '#000000',
  },
}
SCSS
$custom: #f2f870;
$custom-light: #f9fa9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f870",
  "rgb": {
    "r": 242,
    "g": 248,
    "b": 112
  },
  "hsl": {
    "h": 62.647,
    "s": 90.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.94855,
    "c": 0.15822,
    "h": 111.4
  },
  "luminance": 0.87182
}

Semantic roles & 50–950 ramp

primary
#F2F870
secondary
#4039D3
accent
#00E60A
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F870

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

Preview Lab → · Contrast checker → · Palette generator →

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