#F0F662#F0F662

#F0F662 is a very light, vivid yellow. Relative luminance 0.853; OKLCH L 94.1% C 0.168 H 111.4°. Best body text is #000000 at 18.06:1 contrast (WCAG AA passes).

Color values

HEX#F0F662
RGBrgb(240, 246, 98)
HSLhsl(62, 89%, 67%)
HSVhsv(62, 60%, 96%)
CMYKcmyk(2.4%, 0%, 60.2%, 3.5%)
CIE-LABlab(94.02, -20.35, 68.42)
CIE-LCHlch(94.02, 71.38, 106.56°)
OKLaboklab(94.14% -0.0613 0.1563)
OKLCHoklch(94.14% 0.168 111.4)
XYZxyz(71.0975, 85.3203, 24.2761)
Luminance0.8532 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0F662 #6862F6
analogous
#F6B262 #F0F662 #A6F662
triadic
#F0F662 #62F0F6 #F662F0
tetradic
#F0F662 #62F6B2 #6862F6 #F662A6
square
#F0F662 #62F6B2 #6862F6 #F662A6
split-complementary
#F0F662 #62A6F6 #B262F6
monochromatic
#CAD20C #EAF328 #F0F662 #F6F99C #FBFDD6

Accessibility & contrast

On white

1.16
#F0F662 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.06
#F0F662 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0F662
18.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0F662#FFFFFF#000000##000000
##F0F6621.001.1618.0618.06
#FFFFFF1.161.0021.0021.00
#00000018.0621.001.001.00
##00000018.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC50
Deuteranopia (green-blind)
#FFF06B
Tritanopia (blue-blind)
#FFE8D7
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #f0f662;
/* rgb */ color: rgb(240, 246, 98);
/* oklch */ color: oklch(94.1% 0.168 111.4);
Tailwind
colors: {
  custom: {
    50: '#f8f994',
    500: '#f0f662',
    950: '#000000',
  },
}
SCSS
$custom: #f0f662;
$custom-light: #f8f994;
$custom-dark: #000000;
JSON
{
  "hex": "#f0f662",
  "rgb": {
    "r": 240,
    "g": 246,
    "b": 98
  },
  "hsl": {
    "h": 62.432,
    "s": 89.157,
    "l": 67.451
  },
  "oklch": {
    "l": 0.94143,
    "c": 0.16792,
    "h": 111.4
  },
  "luminance": 0.85319
}

Semantic roles & 50–950 ramp

primary
#F0F662
secondary
#362FCD
accent
#00E609
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F0F662

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

Preview Lab → · Contrast checker → · Palette generator →

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