#F0F154#F0F154

#F0F154 is a very light, vivid yellow. Relative luminance 0.821; OKLCH L 93.0% C 0.173 H 109.7°. Best body text is #000000 at 17.42:1 contrast (WCAG AA passes).

Color values

HEX#F0F154
RGBrgb(240, 241, 84)
HSLhsl(60, 85%, 64%)
HSVhsv(60, 65%, 95%)
CMYKcmyk(0.4%, 0%, 65.1%, 5.5%)
CIE-LABlab(92.61, -18.79, 72.45)
CIE-LCHlch(92.61, 74.85, 104.54°)
OKLaboklab(92.98% -0.0583 0.1629)
OKLCHoklch(92.98% 0.173 109.7)
XYZxyz(68.9930, 82.0779, 20.5941)
Luminance0.8208 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0F154 #5554F1
analogous
#F1A354 #F0F154 #A1F154
triadic
#F0F154 #54F0F1 #F154F0
tetradic
#F0F154 #54F1A3 #5554F1 #F154A1
square
#F0F154 #54F1A3 #5554F1 #F154A1
split-complementary
#F0F154 #54A1F1 #A354F1
monochromatic
#BABB0F #EBEC1B #F0F154 #F5F68D #FAFAC5

Accessibility & contrast

On white

1.21
#F0F154 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.42
#F0F154 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0F154
17.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0F154#FFFFFF#000000##000000
##F0F1541.001.2117.4217.42
#FFFFFF1.211.0021.0021.00
#00000017.4221.001.001.00
##00000017.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE73E
Deuteranopia (green-blind)
#FFEC5F
Tritanopia (blue-blind)
#FFE2D1
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #f0f154;
/* rgb */ color: rgb(240, 241, 84);
/* oklch */ color: oklch(93.0% 0.173 109.7);
Tailwind
colors: {
  custom: {
    50: '#f8f58c',
    500: '#f0f154',
    950: '#000000',
  },
}
SCSS
$custom: #f0f154;
$custom-light: #f8f58c;
$custom-dark: #000000;
JSON
{
  "hex": "#f0f154",
  "rgb": {
    "r": 240,
    "g": 241,
    "b": 84
  },
  "hsl": {
    "h": 60.382,
    "s": 84.865,
    "l": 63.725
  },
  "oklch": {
    "l": 0.92982,
    "c": 0.17299,
    "h": 109.7
  },
  "luminance": 0.82076
}

Semantic roles & 50–950 ramp

primary
#F0F154
secondary
#302FBA
accent
#04E106
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #F0F154

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

Preview Lab → · Contrast checker → · Palette generator →

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