#F0F562#F0F562

#F0F562 is a very light, vivid yellow. Relative luminance 0.847; OKLCH L 93.9% C 0.167 H 111.1°. Best body text is #000000 at 17.94:1 contrast (WCAG AA passes).

Color values

HEX#F0F562
RGBrgb(240, 245, 98)
HSLhsl(62, 88%, 67%)
HSVhsv(62, 60%, 96%)
CMYKcmyk(2%, 0%, 60%, 3.9%)
CIE-LABlab(93.76, -19.87, 68.13)
CIE-LCHlch(93.76, 70.97, 106.26°)
OKLaboklab(93.93% -0.0599 0.1557)
OKLCHoklch(93.93% 0.167 111.1)
XYZxyz(70.7942, 84.7136, 24.1750)
Luminance0.8471 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0F562 #6762F5
analogous
#F5B162 #F0F562 #A6F562
triadic
#F0F562 #62F0F5 #F562F0
tetradic
#F0F562 #62F5B1 #6762F5 #F562A6
square
#F0F562 #62F5B1 #6762F5 #F562A6
split-complementary
#F0F562 #62A6F5 #B162F5
monochromatic
#C9CF0D #EBF128 #F0F562 #F5F99C #FBFCD5

Accessibility & contrast

On white

1.17
#F0F562 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.94
#F0F562 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0F562
17.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0F562#FFFFFF#000000##000000
##F0F5621.001.1717.9417.94
#FFFFFF1.171.0021.0021.00
#00000017.9421.001.001.00
##00000017.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB50
Deuteranopia (green-blind)
#FFEF6B
Tritanopia (blue-blind)
#FFE7D6
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #f0f562;
/* rgb */ color: rgb(240, 245, 98);
/* oklch */ color: oklch(93.9% 0.167 111.1);
Tailwind
colors: {
  custom: {
    50: '#f8f894',
    500: '#f0f562',
    950: '#000000',
  },
}
SCSS
$custom: #f0f562;
$custom-light: #f8f894;
$custom-dark: #000000;
JSON
{
  "hex": "#f0f562",
  "rgb": {
    "r": 240,
    "g": 245,
    "b": 98
  },
  "hsl": {
    "h": 62.041,
    "s": 88.024,
    "l": 67.255
  },
  "oklch": {
    "l": 0.93934,
    "c": 0.16688,
    "h": 111.1
  },
  "luminance": 0.84712
}

Semantic roles & 50–950 ramp

primary
#F0F562
secondary
#3530CB
accent
#01E509
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F0F562

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

Preview Lab → · Contrast checker → · Palette generator →

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