#F0F255#F0F255

#F0F255 is a very light, vivid yellow. Relative luminance 0.827; OKLCH L 93.2% C 0.173 H 110.0°. Best body text is #000000 at 17.54:1 contrast (WCAG AA passes).

Color values

HEX#F0F255
RGBrgb(240, 242, 85)
HSLhsl(61, 86%, 64%)
HSVhsv(61, 65%, 95%)
CMYKcmyk(0.8%, 0%, 64.9%, 5.1%)
CIE-LABlab(92.88, -19.21, 72.35)
CIE-LCHlch(92.88, 74.86, 104.87°)
OKLaboklab(93.2% -0.0594 0.1628)
OKLCHoklch(93.2% 0.173 110)
XYZxyz(69.3292, 82.6873, 20.9008)
Luminance0.8268 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0F255 #5755F2
analogous
#F2A655 #F0F255 #A2F255
triadic
#F0F255 #55F0F2 #F255F0
tetradic
#F0F255 #55F2A6 #5755F2 #F255A2
square
#F0F255 #55F2A6 #5755F2 #F255A2
split-complementary
#F0F255 #55A2F2 #A655F2
monochromatic
#BCBE0F #EBEE1C #F0F255 #F5F68E #FAFBC7

Accessibility & contrast

On white

1.20
#F0F255 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.54
#F0F255 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0F255
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0F255#FFFFFF#000000##000000
##F0F2551.001.2017.5417.54
#FFFFFF1.201.0021.0021.00
#00000017.5421.001.001.00
##00000017.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE83F
Deuteranopia (green-blind)
#FFED60
Tritanopia (blue-blind)
#FFE3D2
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #f0f255;
/* rgb */ color: rgb(240, 242, 85);
/* oklch */ color: oklch(93.2% 0.173 110.0);
Tailwind
colors: {
  custom: {
    50: '#f8f68d',
    500: '#f0f255',
    950: '#000000',
  },
}
SCSS
$custom: #f0f255;
$custom-light: #f8f68d;
$custom-dark: #000000;
JSON
{
  "hex": "#f0f255",
  "rgb": {
    "r": 240,
    "g": 242,
    "b": 85
  },
  "hsl": {
    "h": 60.764,
    "s": 85.792,
    "l": 64.118
  },
  "oklch": {
    "l": 0.93198,
    "c": 0.1733,
    "h": 110
  },
  "luminance": 0.82685
}

Semantic roles & 50–950 ramp

primary
#F0F255
secondary
#312FBC
accent
#03E206
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #F0F255

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

Preview Lab → · Contrast checker → · Palette generator →

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