#F0FB5F#F0FB5F

#F0FB5F is a very light, vivid yellow. Relative luminance 0.883; OKLCH L 95.2% C 0.175 H 113.1°. Best body text is #000000 at 18.67:1 contrast (WCAG AA passes).

Color values

HEX#F0FB5F
RGBrgb(240, 251, 95)
HSLhsl(64, 95%, 68%)
HSVhsv(64, 62%, 98%)
CMYKcmyk(4.4%, 0%, 62.2%, 1.6%)
CIE-LABlab(95.31, -22.93, 71.00)
CIE-LCHlch(95.31, 74.61, 107.90°)
OKLaboklab(95.16% -0.0688 0.1614)
OKLCHoklch(95.16% 0.175 113.1)
XYZxyz(72.4998, 88.3473, 24.0578)
Luminance0.8835 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0FB5F #6A5FFB
analogous
#FBB85F #F0FB5F #A2FB5F
triadic
#F0FB5F #5FF0FB #FB5FF0
tetradic
#F0FB5F #5FFBB8 #6A5FFB #FB5FA2
square
#F0FB5F #5FFBB8 #6A5FFB #FB5FA2
split-complementary
#F0FB5F #5FA2FB #B85FFB
monochromatic
#CBDA05 #EAFA23 #F0FB5F #F6FC9B #FBFED6

Accessibility & contrast

On white

1.12
#F0FB5F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.67
#F0FB5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0FB5F
18.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0FB5F#FFFFFF#000000##000000
##F0FB5F1.001.1218.6718.67
#FFFFFF1.121.0021.0021.00
#00000018.6721.001.001.00
##00000018.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF04B
Deuteranopia (green-blind)
#FFF369
Tritanopia (blue-blind)
#FFEDDB
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f0fb5f;
/* rgb */ color: rgb(240, 251, 95);
/* oklch */ color: oklch(95.2% 0.175 113.1);
Tailwind
colors: {
  custom: {
    50: '#f8fc93',
    500: '#f0fb5f',
    950: '#000000',
  },
}
SCSS
$custom: #f0fb5f;
$custom-light: #f8fc93;
$custom-dark: #000000;
JSON
{
  "hex": "#f0fb5f",
  "rgb": {
    "r": 240,
    "g": 251,
    "b": 95
  },
  "hsl": {
    "h": 64.231,
    "s": 95.122,
    "l": 67.843
  },
  "oklch": {
    "l": 0.95164,
    "c": 0.17546,
    "h": 113.1
  },
  "luminance": 0.88346
}

Semantic roles & 50–950 ramp

primary
#F0FB5F
secondary
#362AD4
accent
#00E610
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F0FB5F

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

Preview Lab → · Contrast checker → · Palette generator →

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