#FFF877#FFF877

#FFF877 is a very light, vivid yellow. Relative luminance 0.897; OKLCH L 96.0% C 0.150 H 106.1°. Best body text is #000000 at 18.95:1 contrast (WCAG AA passes).

Color values

HEX#FFF877
RGBrgb(255, 248, 119)
HSLhsl(57, 100%, 73%)
HSVhsv(57, 53%, 100%)
CMYKcmyk(0%, 2.7%, 53.3%, 0%)
CIE-LABlab(95.88, -13.86, 61.83)
CIE-LCHlch(95.88, 63.36, 102.64°)
OKLaboklab(95.97% -0.0416 0.1444)
OKLCHoklch(95.97% 0.15 106.1)
XYZxyz(78.1394, 89.7291, 30.6525)
Luminance0.8973 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF877 #777EFF
analogous
#FFB477 #FFF877 #C2FF77
triadic
#FFF877 #77FFF8 #F877FF
tetradic
#FFF877 #77FFB4 #777EFF #FF77C2
square
#FFF877 #77FFB4 #777EFF #FF77C2
split-complementary
#FFF877 #77C2FF #B477FF
monochromatic
#FCEF00 #FFF53A #FFF877 #FFFBB4 #FFFDE0

Accessibility & contrast

On white

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

On black

18.95
#FFF877 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF877
18.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF877#FFFFFF#000000##000000
##FFF8771.001.1118.9518.95
#FFFFFF1.111.0021.0021.00
#00000018.9521.001.001.00
##00000018.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF06A
Deuteranopia (green-blind)
#FFF67E
Tritanopia (blue-blind)
#FFEADB
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fff877;
/* rgb */ color: rgb(255, 248, 119);
/* oklch */ color: oklch(96.0% 0.150 106.1);
Tailwind
colors: {
  custom: {
    50: '#fffaa2',
    500: '#fff877',
    950: '#000000',
  },
}
SCSS
$custom: #fff877;
$custom-light: #fffaa2;
$custom-dark: #000000;
JSON
{
  "hex": "#fff877",
  "rgb": {
    "r": 255,
    "g": 248,
    "b": 119
  },
  "hsl": {
    "h": 56.912,
    "s": 100,
    "l": 73.333
  },
  "oklch": {
    "l": 0.95972,
    "c": 0.15029,
    "h": 106.1
  },
  "luminance": 0.89727
}

Semantic roles & 50–950 ramp

primary
#FFF877
secondary
#3D46DD
accent
#0CE600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FFF877

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

Preview Lab → · Contrast checker → · Palette generator →

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