#F0EF97#F0EF97

#F0EF97 is a very light, moderate yellow. Relative luminance 0.825; OKLCH L 93.4% C 0.110 H 107.8°. Best body text is #000000 at 17.50:1 contrast (WCAG AA passes).

Color values

HEX#F0EF97
RGBrgb(240, 239, 151)
HSLhsl(59, 75%, 77%)
HSVhsv(59, 37%, 94%)
CMYKcmyk(0%, 0.4%, 37.1%, 5.9%)
CIE-LABlab(92.79, -12.32, 42.70)
CIE-LCHlch(92.79, 44.44, 106.09°)
OKLaboklab(93.36% -0.0335 0.1045)
OKLCHoklch(93.36% 0.11 107.8)
XYZxyz(72.3885, 82.4941, 41.3818)
Luminance0.8249 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0EF97 #9798F0
analogous
#F0C397 #F0EF97 #C5F097
triadic
#F0EF97 #97F0EF #EF97F0
tetradic
#F0EF97 #97F0C3 #9798F0 #F097C5
square
#F0EF97 #97F0C3 #9798F0 #F097C5
split-complementary
#F0EF97 #97C5F0 #C397F0
monochromatic
#E1DF2C #E8E762 #F0EF97 #F8F7CC #FBFBE4

Accessibility & contrast

On white

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

On black

17.50
#F0EF97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0EF97
17.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0EF97#FFFFFF#000000##000000
##F0EF971.001.2017.5017.50
#FFFFFF1.201.0021.0021.00
#00000017.5021.001.001.00
##00000017.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FCE890
Deuteranopia (green-blind)
#FEEC9B
Tritanopia (blue-blind)
#FCE5D9
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #f0ef97;
/* rgb */ color: rgb(240, 239, 151);
/* oklch */ color: oklch(93.4% 0.110 107.8);
Tailwind
colors: {
  custom: {
    50: '#f6f4b6',
    500: '#f0ef97',
    950: '#000000',
  },
}
SCSS
$custom: #f0ef97;
$custom-light: #f6f4b6;
$custom-dark: #000000;
JSON
{
  "hex": "#f0ef97",
  "rgb": {
    "r": 240,
    "g": 239,
    "b": 151
  },
  "hsl": {
    "h": 59.326,
    "s": 74.79,
    "l": 76.667
  },
  "oklch": {
    "l": 0.93355,
    "c": 0.10974,
    "h": 107.8
  },
  "luminance": 0.82493
}

Semantic roles & 50–950 ramp

primary
#F0EF97
secondary
#5E60CD
accent
#11D70F
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171711
muted
#858581

Preview Lab

Preview with #F0EF97

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

Preview Lab → · Contrast checker → · Palette generator →

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