#F0F862#F0F862

#F0F862 is a very light, vivid yellow. Relative luminance 0.865; OKLCH L 94.6% C 0.170 H 112.1°. Best body text is #000000 at 18.31:1 contrast (WCAG AA passes).

Color values

HEX#F0F862
RGBrgb(240, 248, 98)
HSLhsl(63, 91%, 68%)
HSVhsv(63, 60%, 97%)
CMYKcmyk(3.2%, 0%, 60.5%, 2.7%)
CIE-LABlab(94.54, -21.31, 68.98)
CIE-LCHlch(94.54, 72.20, 107.16°)
OKLaboklab(94.56% -0.064 0.1575)
OKLCHoklch(94.56% 0.17 112.1)
XYZxyz(71.7091, 86.5435, 24.4800)
Luminance0.8654 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0F862 #6A62F8
analogous
#F8B562 #F0F862 #A5F862
triadic
#F0F862 #62F0F8 #F862F0
tetradic
#F0F862 #62F8B5 #6A62F8 #F862A5
square
#F0F862 #62F8B5 #6A62F8 #F862A5
split-complementary
#F0F862 #62A5F8 #B562F8
monochromatic
#CBD60A #EAF527 #F0F862 #F6FB9D #FBFDD7

Accessibility & contrast

On white

1.15
#F0F862 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.31
#F0F862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0F862
18.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0F862#FFFFFF#000000##000000
##F0F8621.001.1518.3118.31
#FFFFFF1.151.0021.0021.00
#00000018.3121.001.001.00
##00000018.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED50
Deuteranopia (green-blind)
#FFF16B
Tritanopia (blue-blind)
#FFEAD8
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #f0f862;
/* rgb */ color: rgb(240, 248, 98);
/* oklch */ color: oklch(94.6% 0.170 112.1);
Tailwind
colors: {
  custom: {
    50: '#f8fa95',
    500: '#f0f862',
    950: '#000000',
  },
}
SCSS
$custom: #f0f862;
$custom-light: #f8fa95;
$custom-dark: #000000;
JSON
{
  "hex": "#f0f862",
  "rgb": {
    "r": 240,
    "g": 248,
    "b": 98
  },
  "hsl": {
    "h": 63.2,
    "s": 91.463,
    "l": 67.843
  },
  "oklch": {
    "l": 0.94562,
    "c": 0.17003,
    "h": 112.1
  },
  "luminance": 0.86542
}

Semantic roles & 50–950 ramp

primary
#F0F862
secondary
#362ED0
accent
#00E60C
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F0F862

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

Preview Lab → · Contrast checker → · Palette generator →

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