#F0FF40#F0FF40

#F0FF40 is a very light, vivid yellow. Relative luminance 0.904; OKLCH L 95.8% C 0.199 H 114.2°. Best body text is #000000 at 19.08:1 contrast (WCAG AA passes).

Color values

HEX#F0FF40
RGBrgb(240, 255, 64)
HSLhsl(65, 100%, 63%)
HSVhsv(65, 75%, 100%)
CMYKcmyk(5.9%, 0%, 74.9%, 0%)
CIE-LABlab(96.17, -26.39, 82.67)
CIE-LCHlch(96.17, 86.78, 107.70°)
OKLaboklab(95.79% -0.0813 0.1812)
OKLCHoklch(95.79% 0.199 114.2)
XYZxyz(72.6228, 90.4169, 18.4761)
Luminance0.9042 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0FF40 #4F40FF
analogous
#FFAE40 #F0FF40 #91FF40
triadic
#F0FF40 #40F0FF #FF40F0
tetradic
#F0FF40 #40FFAE #4F40FF #FF4091
square
#F0FF40 #40FFAE #4F40FF #FF4091
split-complementary
#F0FF40 #4091FF #AE40FF
monochromatic
#B5C500 #EBFF03 #F0FF40 #F5FF7D #FAFFBA

Accessibility & contrast

On white

1.10
#F0FF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.08
#F0FF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0FF40
19.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0FF40#FFFFFF#000000##000000
##F0FF401.001.1019.0819.08
#FFFFFF1.101.0021.0021.00
#00000019.0821.001.001.00
##00000019.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF208
Deuteranopia (green-blind)
#FFF651
Tritanopia (blue-blind)
#FFF0DB
Achromatopsia (no color)
#F4F4F4

Design tokens & code

CSS
--color: #f0ff40;
/* rgb */ color: rgb(240, 255, 64);
/* oklch */ color: oklch(95.8% 0.199 114.2);
Tailwind
colors: {
  custom: {
    50: '#f9ff83',
    500: '#f0ff40',
    950: '#000000',
  },
}
SCSS
$custom: #f0ff40;
$custom-light: #f9ff83;
$custom-dark: #000000;
JSON
{
  "hex": "#f0ff40",
  "rgb": {
    "r": 240,
    "g": 255,
    "b": 64
  },
  "hsl": {
    "h": 64.712,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.95794,
    "c": 0.19858,
    "h": 114.2
  },
  "luminance": 0.90415
}

Semantic roles & 50–950 ramp

primary
#F0FF40
secondary
#2F22C1
accent
#00E612
background
#FFFFFC
surface
#FFFFF4
border
#D7D7CE
text
#18170C
muted
#86857F

Preview Lab

Preview with #F0FF40

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

Preview Lab → · Contrast checker → · Palette generator →

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