#F0E45F#F0E45F

#F0E45F is a very light, vivid yellow. Relative luminance 0.748; OKLCH L 90.4% C 0.152 H 104.2°. Best body text is #000000 at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#F0E45F
RGBrgb(240, 228, 95)
HSLhsl(55, 83%, 66%)
HSVhsv(55, 60%, 94%)
CMYKcmyk(0%, 5%, 60.4%, 5.9%)
CIE-LABlab(89.32, -11.76, 64.57)
CIE-LCHlch(89.32, 65.63, 100.32°)
OKLaboklab(90.39% -0.0373 0.1478)
OKLCHoklch(90.39% 0.152 104.2)
XYZxyz(65.7465, 74.8407, 21.8067)
Luminance0.7484 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0E45F #5F6BF0
analogous
#F09B5F #F0E45F #B4F05F
triadic
#F0E45F #5FF0E4 #E45FF0
tetradic
#F0E45F #5FF09B #5F6BF0 #F05FB4
square
#F0E45F #5FF09B #5F6BF0 #F05FB4
split-complementary
#F0E45F #5FB4F0 #9B5FF0
monochromatic
#C2B412 #EBDB27 #F0E45F #F5ED97 #FAF7CF

Accessibility & contrast

On white

1.32
#F0E45F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.97
#F0E45F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0E45F
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0E45F#FFFFFF#000000##000000
##F0E45F1.001.3215.9715.97
#FFFFFF1.321.0021.0021.00
#00000015.9721.001.001.00
##00000015.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#F7DD50
Deuteranopia (green-blind)
#FBE366
Tritanopia (blue-blind)
#FFD6C8
Achromatopsia (no color)
#E0E0E0

Design tokens & code

CSS
--color: #f0e45f;
/* rgb */ color: rgb(240, 228, 95);
/* oklch */ color: oklch(90.4% 0.152 104.2);
Tailwind
colors: {
  custom: {
    50: '#f8ec91',
    500: '#f0e45f',
    950: '#000000',
  },
}
SCSS
$custom: #f0e45f;
$custom-light: #f8ec91;
$custom-dark: #000000;
JSON
{
  "hex": "#f0e45f",
  "rgb": {
    "r": 240,
    "g": 228,
    "b": 95
  },
  "hsl": {
    "h": 55.034,
    "s": 82.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.90387,
    "c": 0.15241,
    "h": 104.2
  },
  "luminance": 0.74838
}

Semantic roles & 50–950 ramp

primary
#F0E45F
secondary
#333FC0
accent
#18DF06
background
#FFFEFC
surface
#FFFDF4
border
#D7D5CE
text
#18160D
muted
#86847F

Preview Lab

Preview with #F0E45F

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

Preview Lab → · Contrast checker → · Palette generator →

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