#F0F870#F0F870

#F0F870 is a very light, vivid yellow. Relative luminance 0.868; OKLCH L 94.7% C 0.159 H 112.1°. Best body text is #000000 at 18.37:1 contrast (WCAG AA passes).

Color values

HEX#F0F870
RGBrgb(240, 248, 112)
HSLhsl(64, 91%, 71%)
HSVhsv(64, 55%, 97%)
CMYKcmyk(3.2%, 0%, 54.8%, 2.7%)
CIE-LABlab(94.67, -20.31, 63.21)
CIE-LCHlch(94.67, 66.40, 107.82°)
OKLaboklab(94.7% -0.0598 0.1469)
OKLCHoklch(94.7% 0.159 112.1)
XYZxyz(72.4289, 86.8314, 28.2708)
Luminance0.8683 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0F870 #7870F8
analogous
#F8BC70 #F0F870 #ACF870
triadic
#F0F870 #70F0F8 #F870F0
tetradic
#F0F870 #70F8BC #7870F8 #F870AC
square
#F0F870 #70F8BC #7870F8 #F870AC
split-complementary
#F0F870 #70ACF8 #BC70F8
monochromatic
#D6E30B #EAF536 #F0F870 #F6FBAA #FCFEE2

Accessibility & contrast

On white

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

On black

18.37
#F0F870 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0F870
18.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0F870#FFFFFF#000000##000000
##F0F8701.001.1418.3718.37
#FFFFFF1.141.0021.0021.00
#00000018.3721.001.001.00
##00000018.3721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f0f870;
/* rgb */ color: rgb(240, 248, 112);
/* oklch */ color: oklch(94.7% 0.159 112.1);
Tailwind
colors: {
  custom: {
    50: '#f7fa9d',
    500: '#f0f870',
    950: '#000000',
  },
}
SCSS
$custom: #f0f870;
$custom-light: #f7fa9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f0f870",
  "rgb": {
    "r": 240,
    "g": 248,
    "b": 112
  },
  "hsl": {
    "h": 63.529,
    "s": 90.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.94699,
    "c": 0.15863,
    "h": 112.1
  },
  "luminance": 0.8683
}

Semantic roles & 50–950 ramp

primary
#F0F870
secondary
#4239D3
accent
#00E60D
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F0F870

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

Preview Lab → · Contrast checker → · Palette generator →

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