#F5E781#F5E781

#F5E781 is a very light, vivid yellow. Relative luminance 0.781; OKLCH L 91.8% C 0.124 H 101.6°. Best body text is #000000 at 16.63:1 contrast (WCAG AA passes).

Color values

HEX#F5E781
RGBrgb(245, 231, 129)
HSLhsl(53, 85%, 73%)
HSVhsv(53, 47%, 96%)
CMYKcmyk(0%, 5.7%, 47.3%, 3.9%)
CIE-LABlab(90.85, -8.60, 51.04)
CIE-LCHlch(90.85, 51.76, 99.57°)
OKLaboklab(91.81% -0.0249 0.1219)
OKLCHoklch(91.81% 0.124 101.6)
XYZxyz(70.1964, 78.1516, 32.1517)
Luminance0.7815 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E781 #818FF5
analogous
#F5AD81 #F5E781 #C9F581
triadic
#F5E781 #81F5E7 #E781F5
tetradic
#F5E781 #81F5AD #818FF5 #F581C9
square
#F5E781 #81F5AD #818FF5 #F581C9
split-complementary
#F5E781 #81C9F5 #AD81F5
monochromatic
#E9CF13 #F0DC48 #F5E781 #F9F2BA #FDFAE3

Accessibility & contrast

On white

1.26
#F5E781 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.63
#F5E781 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E781
16.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E781#FFFFFF#000000##000000
##F5E7811.001.2616.6316.63
#FFFFFF1.261.0021.0021.00
#00000016.6321.001.001.00
##00000016.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#F8E178
Deuteranopia (green-blind)
#FCE885
Tritanopia (blue-blind)
#FFDACF
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f5e781;
/* rgb */ color: rgb(245, 231, 129);
/* oklch */ color: oklch(91.8% 0.124 101.6);
Tailwind
colors: {
  custom: {
    50: '#faeea7',
    500: '#f5e781',
    950: '#000000',
  },
}
SCSS
$custom: #f5e781;
$custom-light: #faeea7;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e781",
  "rgb": {
    "r": 245,
    "g": 231,
    "b": 129
  },
  "hsl": {
    "h": 52.759,
    "s": 85.294,
    "l": 73.333
  },
  "oklch": {
    "l": 0.91814,
    "c": 0.12444,
    "h": 101.6
  },
  "luminance": 0.78149
}

Semantic roles & 50–950 ramp

primary
#F5E781
secondary
#495AD1
accent
#1FE204
background
#FFFEFC
surface
#FFFDF6
border
#D7D5D0
text
#181610
muted
#868480

Preview Lab

Preview with #F5E781

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

Preview Lab → · Contrast checker → · Palette generator →

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