#F0F960#F0F960

#F0F960 is a very light, vivid yellow. Relative luminance 0.871; OKLCH L 94.8% C 0.173 H 112.4°. Best body text is #000000 at 18.42:1 contrast (WCAG AA passes).

Color values

HEX#F0F960
RGBrgb(240, 249, 96)
HSLhsl(64, 93%, 68%)
HSVhsv(64, 61%, 98%)
CMYKcmyk(3.6%, 0%, 61.4%, 2.4%)
CIE-LABlab(94.79, -21.91, 70.05)
CIE-LCHlch(94.79, 73.40, 107.37°)
OKLaboklab(94.75% -0.0659 0.1595)
OKLCHoklch(94.75% 0.173 112.4)
XYZxyz(71.9241, 87.1227, 24.0916)
Luminance0.8712 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0F960 #6960F9
analogous
#F9B560 #F0F960 #A4F960
triadic
#F0F960 #60F0F9 #F960F0
tetradic
#F0F960 #60F9B5 #6960F9 #F960A4
square
#F0F960 #60F9B5 #6960F9 #F960A4
split-complementary
#F0F960 #60A4F9 #B560F9
monochromatic
#CAD708 #EAF725 #F0F960 #F6FB9B #FBFDD6

Accessibility & contrast

On white

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

On black

18.42
#F0F960 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0F960
18.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0F960#FFFFFF#000000##000000
##F0F9601.001.1418.4218.42
#FFFFFF1.141.0021.0021.00
#00000018.4221.001.001.00
##00000018.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE4D
Deuteranopia (green-blind)
#FFF26A
Tritanopia (blue-blind)
#FFEBD9
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #f0f960;
/* rgb */ color: rgb(240, 249, 96);
/* oklch */ color: oklch(94.8% 0.173 112.4);
Tailwind
colors: {
  custom: {
    50: '#f8fb94',
    500: '#f0f960',
    950: '#000000',
  },
}
SCSS
$custom: #f0f960;
$custom-light: #f8fb94;
$custom-dark: #000000;
JSON
{
  "hex": "#f0f960",
  "rgb": {
    "r": 240,
    "g": 249,
    "b": 96
  },
  "hsl": {
    "h": 63.529,
    "s": 92.727,
    "l": 67.647
  },
  "oklch": {
    "l": 0.94753,
    "c": 0.17261,
    "h": 112.4
  },
  "luminance": 0.87121
}

Semantic roles & 50–950 ramp

primary
#F0F960
secondary
#362CD1
accent
#00E60D
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F0F960

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

Preview Lab → · Contrast checker → · Palette generator →

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