#FFF787#FFF787

#FFF787 is a very light, vivid yellow. Relative luminance 0.895; OKLCH L 96.0% C 0.134 H 105.0°. Best body text is #000000 at 18.91:1 contrast (WCAG AA passes).

Color values

HEX#FFF787
RGBrgb(255, 247, 135)
HSLhsl(56, 100%, 76%)
HSVhsv(56, 47%, 100%)
CMYKcmyk(0%, 3.1%, 47.1%, 0%)
CIE-LABlab(95.80, -12.04, 54.41)
CIE-LCHlch(95.80, 55.73, 102.48°)
OKLaboklab(95.96% -0.0348 0.1297)
OKLCHoklch(95.96% 0.134 105)
XYZxyz(78.8758, 89.5330, 36.0436)
Luminance0.8953 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF787 #878FFF
analogous
#FFBB87 #FFF787 #CBFF87
triadic
#FFF787 #87FFF7 #F787FF
tetradic
#FFF787 #87FFBB #878FFF #FF87CB
square
#FFF787 #87FFBB #878FFF #FF87CB
split-complementary
#FFF787 #87CBFF #BB87FF
monochromatic
#FFEF0D #FFF34A #FFF787 #FFFBC4 #FFFDE0

Accessibility & contrast

On white

1.11
#FFF787 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.91
#FFF787 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF787
18.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF787#FFFFFF#000000##000000
##FFF7871.001.1118.9118.91
#FFFFFF1.111.0021.0021.00
#00000018.9121.001.001.00
##00000018.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF07D
Deuteranopia (green-blind)
#FFF58C
Tritanopia (blue-blind)
#FFEADD
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fff787;
/* rgb */ color: rgb(255, 247, 135);
/* oklch */ color: oklch(96.0% 0.134 105.0);
Tailwind
colors: {
  custom: {
    50: '#fff9ac',
    500: '#fff787',
    950: '#000000',
  },
}
SCSS
$custom: #fff787;
$custom-light: #fff9ac;
$custom-dark: #000000;
JSON
{
  "hex": "#fff787",
  "rgb": {
    "r": 255,
    "g": 247,
    "b": 135
  },
  "hsl": {
    "h": 56,
    "s": 100,
    "l": 76.471
  },
  "oklch": {
    "l": 0.95963,
    "c": 0.13426,
    "h": 105
  },
  "luminance": 0.89531
}

Semantic roles & 50–950 ramp

primary
#FFF787
secondary
#4B55DF
accent
#0FE600
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#181710
muted
#868581

Preview Lab

Preview with #FFF787

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

Preview Lab → · Contrast checker → · Palette generator →

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