#F0EF54#F0EF54

#F0EF54 is a very light, vivid yellow. Relative luminance 0.809; OKLCH L 92.6% C 0.171 H 109.0°. Best body text is #000000 at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#F0EF54
RGBrgb(240, 239, 84)
HSLhsl(60, 84%, 64%)
HSVhsv(60, 65%, 94%)
CMYKcmyk(0%, 0.4%, 65%, 5.9%)
CIE-LABlab(92.09, -17.82, 71.92)
CIE-LCHlch(92.09, 74.09, 103.91°)
OKLaboklab(92.57% -0.0556 0.1617)
OKLCHoklch(92.57% 0.171 109)
XYZxyz(68.4042, 80.9004, 20.3978)
Luminance0.8090 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0EF54 #5455F0
analogous
#F0A154 #F0EF54 #A3F054
triadic
#F0EF54 #54F0EF #EF54F0
tetradic
#F0EF54 #54F0A1 #5455F0 #F054A3
square
#F0EF54 #54F0A1 #5455F0 #F054A3
split-complementary
#F0EF54 #54A3F0 #A154F0
monochromatic
#B9B810 #EBEA1C #F0EF54 #F5F48C #FAFAC5

Accessibility & contrast

On white

1.22
#F0EF54 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.18
#F0EF54 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0EF54
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0EF54#FFFFFF#000000##000000
##F0EF541.001.2217.1817.18
#FFFFFF1.221.0021.0021.00
#00000017.1821.001.001.00
##00000017.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE53E
Deuteranopia (green-blind)
#FFEB5E
Tritanopia (blue-blind)
#FFE0D0
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #f0ef54;
/* rgb */ color: rgb(240, 239, 84);
/* oklch */ color: oklch(92.6% 0.171 109.0);
Tailwind
colors: {
  custom: {
    50: '#f8f48c',
    500: '#f0ef54',
    950: '#000000',
  },
}
SCSS
$custom: #f0ef54;
$custom-light: #f8f48c;
$custom-dark: #000000;
JSON
{
  "hex": "#f0ef54",
  "rgb": {
    "r": 240,
    "g": 239,
    "b": 84
  },
  "hsl": {
    "h": 59.615,
    "s": 83.871,
    "l": 63.529
  },
  "oklch": {
    "l": 0.92565,
    "c": 0.17102,
    "h": 109
  },
  "luminance": 0.80898
}

Semantic roles & 50–950 ramp

primary
#F0EF54
secondary
#3031B8
accent
#07E005
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #F0EF54

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

Preview Lab → · Contrast checker → · Palette generator →

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