#F0F062#F0F062

#F0F062 is a very light, vivid yellow. Relative luminance 0.817; OKLCH L 92.9% C 0.162 H 109.2°. Best body text is #000000 at 17.35:1 contrast (WCAG AA passes).

Color values

HEX#F0F062
RGBrgb(240, 240, 98)
HSLhsl(60, 83%, 66%)
HSVhsv(60, 59%, 94%)
CMYKcmyk(0%, 0%, 59.2%, 5.9%)
CIE-LABlab(92.46, -17.45, 66.72)
CIE-LCHlch(92.46, 68.97, 104.66°)
OKLaboklab(92.89% -0.0531 0.1527)
OKLCHoklch(92.89% 0.162 109.2)
XYZxyz(69.3019, 81.7292, 23.6776)
Luminance0.8173 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0F062 #6262F0
analogous
#F0A962 #F0F062 #A9F062
triadic
#F0F062 #62F0F0 #F062F0
tetradic
#F0F062 #62F0A9 #6262F0 #F062A9
square
#F0F062 #62F0A9 #6262F0 #F062A9
split-complementary
#F0F062 #62A9F0 #A962F0
monochromatic
#C5C513 #EBEB2A #F0F062 #F5F59A #FBFBD2

Accessibility & contrast

On white

1.21
#F0F062 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.35
#F0F062 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0F062
17.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0F062#FFFFFF#000000##000000
##F0F0621.001.2117.3517.35
#FFFFFF1.211.0021.0021.00
#00000017.3521.001.001.00
##00000017.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE751
Deuteranopia (green-blind)
#FFEC6A
Tritanopia (blue-blind)
#FFE2D2
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #f0f062;
/* rgb */ color: rgb(240, 240, 98);
/* oklch */ color: oklch(92.9% 0.162 109.2);
Tailwind
colors: {
  custom: {
    50: '#f8f494',
    500: '#f0f062',
    950: '#000000',
  },
}
SCSS
$custom: #f0f062;
$custom-light: #f8f494;
$custom-dark: #000000;
JSON
{
  "hex": "#f0f062",
  "rgb": {
    "r": 240,
    "g": 240,
    "b": 98
  },
  "hsl": {
    "h": 60,
    "s": 82.558,
    "l": 66.275
  },
  "oklch": {
    "l": 0.92893,
    "c": 0.16171,
    "h": 109.2
  },
  "luminance": 0.81727
}

Semantic roles & 50–950 ramp

primary
#F0F062
secondary
#3434C2
accent
#07DF07
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F0F062

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

Preview Lab → · Contrast checker → · Palette generator →

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