#FBF87F#FBF87F

#FBF87F is a very light, vivid yellow. Relative luminance 0.892; OKLCH L 95.7% C 0.143 H 107.5°. Best body text is #000000 at 18.84:1 contrast (WCAG AA passes).

Color values

HEX#FBF87F
RGBrgb(251, 248, 127)
HSLhsl(59, 94%, 74%)
HSVhsv(59, 49%, 98%)
CMYKcmyk(0%, 1.2%, 49.4%, 1.6%)
CIE-LABlab(95.65, -14.79, 57.87)
CIE-LCHlch(95.65, 59.73, 104.34°)
OKLaboklab(95.74% -0.0432 0.1367)
OKLCHoklch(95.74% 0.143 107.5)
XYZxyz(77.1837, 89.1784, 33.2219)
Luminance0.8918 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FBF87F #7F82FB
analogous
#FBBA7F #FBF87F #C0FB7F
triadic
#FBF87F #7FFBF8 #F87FFB
tetradic
#FBF87F #7FFBBA #7F82FB #FB7FC0
square
#FBF87F #7FFBBA #7F82FB #FB7FC0
split-complementary
#FBF87F #7FC0FB #BA7FFB
monochromatic
#F7F208 #F9F544 #FBF87F #FDFBBA #FEFDE1

Accessibility & contrast

On white

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

On black

18.84
#FBF87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FBF87F
18.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FBF87F#FFFFFF#000000##000000
##FBF87F1.001.1118.8418.84
#FFFFFF1.111.0021.0021.00
#00000018.8421.001.001.00
##00000018.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF074
Deuteranopia (green-blind)
#FFF585
Tritanopia (blue-blind)
#FFEBDC
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #fbf87f;
/* rgb */ color: rgb(251, 248, 127);
/* oklch */ color: oklch(95.7% 0.143 107.5);
Tailwind
colors: {
  custom: {
    50: '#fffaa7',
    500: '#fbf87f',
    950: '#000000',
  },
}
SCSS
$custom: #fbf87f;
$custom-light: #fffaa7;
$custom-dark: #000000;
JSON
{
  "hex": "#fbf87f",
  "rgb": {
    "r": 251,
    "g": 248,
    "b": 127
  },
  "hsl": {
    "h": 58.548,
    "s": 93.939,
    "l": 74.118
  },
  "oklch": {
    "l": 0.9574,
    "c": 0.14333,
    "h": 107.5
  },
  "luminance": 0.89176
}

Semantic roles & 50–950 ramp

primary
#FBF87F
secondary
#4649D9
accent
#06E600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#181710
muted
#868580

Preview Lab

Preview with #FBF87F

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

Preview Lab → · Contrast checker → · Palette generator →

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