#F5E787#F5E787

#F5E787 is a very light, moderate yellow. Relative luminance 0.783; OKLCH L 91.9% C 0.118 H 101.1°. Best body text is #000000 at 16.66:1 contrast (WCAG AA passes).

Color values

HEX#F5E787
RGBrgb(245, 231, 135)
HSLhsl(52, 85%, 75%)
HSVhsv(52, 45%, 96%)
CMYKcmyk(0%, 5.7%, 44.9%, 3.9%)
CIE-LABlab(90.92, -8.04, 48.25)
CIE-LCHlch(90.92, 48.91, 99.47°)
OKLaboklab(91.9% -0.0227 0.1161)
OKLCHoklch(91.9% 0.118 101.1)
XYZxyz(70.6070, 78.3158, 34.3141)
Luminance0.7831 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E787 #8795F5
analogous
#F5B087 #F5E787 #CCF587
triadic
#F5E787 #87F5E7 #E787F5
tetradic
#F5E787 #87F5B0 #8795F5 #F587CC
square
#F5E787 #87F5B0 #8795F5 #F587CC
split-complementary
#F5E787 #87CCF5 #B087F5
monochromatic
#ECD016 #F0DC4F #F5E787 #FAF2BF #FDF9E3

Accessibility & contrast

On white

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

On black

16.66
#F5E787 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E787
16.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E787#FFFFFF#000000##000000
##F5E7871.001.2616.6616.66
#FFFFFF1.261.0021.0021.00
#00000016.6621.001.001.00
##00000016.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#F7E27F
Deuteranopia (green-blind)
#FBE88B
Tritanopia (blue-blind)
#FFDBD0
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f5e787;
/* rgb */ color: rgb(245, 231, 135);
/* oklch */ color: oklch(91.9% 0.118 101.1);
Tailwind
colors: {
  custom: {
    50: '#faeeab',
    500: '#f5e787',
    950: '#000000',
  },
}
SCSS
$custom: #f5e787;
$custom-light: #faeeab;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e787",
  "rgb": {
    "r": 245,
    "g": 231,
    "b": 135
  },
  "hsl": {
    "h": 52.364,
    "s": 84.615,
    "l": 74.51
  },
  "oklch": {
    "l": 0.91898,
    "c": 0.11833,
    "h": 101.1
  },
  "luminance": 0.78314
}

Semantic roles & 50–950 ramp

primary
#F5E787
secondary
#4E5FD2
accent
#20E104
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181610
muted
#868581

Preview Lab

Preview with #F5E787

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

Preview Lab → · Contrast checker → · Palette generator →

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