#F5E381#F5E381

#F5E381 is a very light, vivid yellow. Relative luminance 0.759; OKLCH L 91.0% C 0.121 H 99.1°. Best body text is #000000 at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#F5E381
RGBrgb(245, 227, 129)
HSLhsl(51, 85%, 73%)
HSVhsv(51, 47%, 96%)
CMYKcmyk(0%, 7.3%, 47.3%, 3.9%)
CIE-LABlab(89.83, -6.60, 49.80)
CIE-LCHlch(89.83, 50.23, 97.55°)
OKLaboklab(91.01% -0.0191 0.1192)
OKLCHoklch(91.01% 0.121 99.1)
XYZxyz(69.0897, 75.9381, 31.7828)
Luminance0.7594 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E381 #8193F5
analogous
#F5A981 #F5E381 #CDF581
triadic
#F5E381 #81F5E3 #E381F5
tetradic
#F5E381 #81F5A9 #8193F5 #F581CD
square
#F5E381 #81F5A9 #8193F5 #F581CD
split-complementary
#F5E381 #81CDF5 #A981F5
monochromatic
#E9C813 #F0D648 #F5E381 #F9F0BA #FDF9E3

Accessibility & contrast

On white

1.30
#F5E381 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.19
#F5E381 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E381
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E381#FFFFFF#000000##000000
##F5E3811.001.3016.1916.19
#FFFFFF1.301.0021.0021.00
#00000016.1921.001.001.00
##00000016.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#F4DE79
Deuteranopia (green-blind)
#F9E585
Tritanopia (blue-blind)
#FFD6CC
Achromatopsia (no color)
#E2E2E2

Design tokens & code

CSS
--color: #f5e381;
/* rgb */ color: rgb(245, 227, 129);
/* oklch */ color: oklch(91.0% 0.121 99.1);
Tailwind
colors: {
  custom: {
    50: '#faeba7',
    500: '#f5e381',
    950: '#000000',
  },
}
SCSS
$custom: #f5e381;
$custom-light: #faeba7;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e381",
  "rgb": {
    "r": 245,
    "g": 227,
    "b": 129
  },
  "hsl": {
    "h": 50.69,
    "s": 85.294,
    "l": 73.333
  },
  "oklch": {
    "l": 0.91007,
    "c": 0.12069,
    "h": 99.1
  },
  "luminance": 0.75936
}

Semantic roles & 50–950 ramp

primary
#F5E381
secondary
#495ED1
accent
#26E204
background
#FFFEFC
surface
#FFFDF6
border
#D7D5D0
text
#181610
muted
#868480

Preview Lab

Preview with #F5E381

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

Preview Lab → · Contrast checker → · Palette generator →

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