#F0F054#F0F054

#F0F054 is a very light, vivid yellow. Relative luminance 0.815; OKLCH L 92.8% C 0.172 H 109.3°. Best body text is #000000 at 17.30:1 contrast (WCAG AA passes).

Color values

HEX#F0F054
RGBrgb(240, 240, 84)
HSLhsl(60, 84%, 64%)
HSVhsv(60, 65%, 94%)
CMYKcmyk(0%, 0%, 65%, 5.9%)
CIE-LABlab(92.35, -18.30, 72.19)
CIE-LCHlch(92.35, 74.47, 104.23°)
OKLaboklab(92.77% -0.0569 0.1623)
OKLCHoklch(92.77% 0.172 109.3)
XYZxyz(68.6978, 81.4875, 20.4957)
Luminance0.8149 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0F054 #5454F0
analogous
#F0A254 #F0F054 #A2F054
triadic
#F0F054 #54F0F0 #F054F0
tetradic
#F0F054 #54F0A2 #5454F0 #F054A2
square
#F0F054 #54F0A2 #5454F0 #F054A2
split-complementary
#F0F054 #54A2F0 #A254F0
monochromatic
#B9B910 #EBEB1C #F0F054 #F5F58C #FAFAC5

Accessibility & contrast

On white

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

On black

17.30
#F0F054 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0F054
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0F054#FFFFFF#000000##000000
##F0F0541.001.2117.3017.30
#FFFFFF1.211.0021.0021.00
#00000017.3021.001.001.00
##00000017.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE63E
Deuteranopia (green-blind)
#FFEB5E
Tritanopia (blue-blind)
#FFE1D0
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #f0f054;
/* rgb */ color: rgb(240, 240, 84);
/* oklch */ color: oklch(92.8% 0.172 109.3);
Tailwind
colors: {
  custom: {
    50: '#f8f48c',
    500: '#f0f054',
    950: '#000000',
  },
}
SCSS
$custom: #f0f054;
$custom-light: #f8f48c;
$custom-dark: #000000;
JSON
{
  "hex": "#f0f054",
  "rgb": {
    "r": 240,
    "g": 240,
    "b": 84
  },
  "hsl": {
    "h": 60,
    "s": 83.871,
    "l": 63.529
  },
  "oklch": {
    "l": 0.92774,
    "c": 0.172,
    "h": 109.3
  },
  "luminance": 0.81486
}

Semantic roles & 50–950 ramp

primary
#F0F054
secondary
#3030B8
accent
#05E005
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #F0F054

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

Preview Lab → · Contrast checker → · Palette generator →

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