#FBF87C#FBF87C

#FBF87C is a very light, vivid yellow. Relative luminance 0.891; OKLCH L 95.7% C 0.146 H 107.6°. Best body text is #000000 at 18.82:1 contrast (WCAG AA passes).

Color values

HEX#FBF87C
RGBrgb(251, 248, 124)
HSLhsl(59, 94%, 74%)
HSVhsv(59, 51%, 98%)
CMYKcmyk(0%, 1.2%, 50.6%, 1.6%)
CIE-LABlab(95.62, -15.04, 59.19)
CIE-LCHlch(95.62, 61.08, 104.26°)
OKLaboklab(95.71% -0.0442 0.1393)
OKLCHoklch(95.71% 0.146 107.6)
XYZxyz(76.9911, 89.1013, 32.2075)
Luminance0.8910 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FBF87C #7C7FFB
analogous
#FBB87C #FBF87C #BEFB7C
triadic
#FBF87C #7CFBF8 #F87CFB
tetradic
#FBF87C #7CFBB8 #7C7FFB #FB7CBE
square
#FBF87C #7CFBB8 #7C7FFB #FB7CBE
split-complementary
#FBF87C #7CBEFB #B87CFB
monochromatic
#F5F007 #F9F541 #FBF87C #FDFBB7 #FEFDE1

Accessibility & contrast

On white

1.12
#FBF87C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.82
#FBF87C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FBF87C
18.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FBF87C#FFFFFF#000000##000000
##FBF87C1.001.1218.8218.82
#FFFFFF1.121.0021.0021.00
#00000018.8221.001.001.00
##00000018.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fbf87c;
/* rgb */ color: rgb(251, 248, 124);
/* oklch */ color: oklch(95.7% 0.146 107.6);
Tailwind
colors: {
  custom: {
    50: '#fffaa5',
    500: '#fbf87c',
    950: '#000000',
  },
}
SCSS
$custom: #fbf87c;
$custom-light: #fffaa5;
$custom-dark: #000000;
JSON
{
  "hex": "#fbf87c",
  "rgb": {
    "r": 251,
    "g": 248,
    "b": 124
  },
  "hsl": {
    "h": 58.583,
    "s": 94.074,
    "l": 73.529
  },
  "oklch": {
    "l": 0.95705,
    "c": 0.14613,
    "h": 107.6
  },
  "luminance": 0.89099
}

Semantic roles & 50–950 ramp

primary
#FBF87C
secondary
#4346D8
accent
#05E600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FBF87C

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

Preview Lab → · Contrast checker → · Palette generator →

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