#FBE87B#FBE87B

#FBE87B is a very light, vivid yellow. Relative luminance 0.797; OKLCH L 92.5% C 0.131 H 99.6°. Best body text is #000000 at 16.93:1 contrast (WCAG AA passes).

Color values

HEX#FBE87B
RGBrgb(251, 232, 123)
HSLhsl(51, 94%, 73%)
HSVhsv(51, 51%, 98%)
CMYKcmyk(0%, 7.6%, 51%, 1.6%)
CIE-LABlab(91.53, -7.24, 54.81)
CIE-LCHlch(91.53, 55.29, 97.52°)
OKLaboklab(92.45% -0.0219 0.1296)
OKLCHoklch(92.45% 0.131 99.6)
XYZxyz(72.2177, 79.6552, 30.3059)
Luminance0.7965 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FBE87B #7B8EFB
analogous
#FBA87B #FBE87B #CEFB7B
triadic
#FBE87B #7BFBE8 #E87BFB
tetradic
#FBE87B #7BFBA8 #7B8EFB #FB7BCE
square
#FBE87B #7BFBA8 #7B8EFB #FB7BCE
split-complementary
#FBE87B #7BCEFB #A87BFB
monochromatic
#F4D107 #F9DE40 #FBE87B #FDF2B6 #FEFAE1

Accessibility & contrast

On white

1.24
#FBE87B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.93
#FBE87B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FBE87B
16.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FBE87B#FFFFFF#000000##000000
##FBE87B1.001.2416.9316.93
#FFFFFF1.241.0021.0021.00
#00000016.9321.001.001.00
##00000016.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE371
Deuteranopia (green-blind)
#FFEA80
Tritanopia (blue-blind)
#FFDACF
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #fbe87b;
/* rgb */ color: rgb(251, 232, 123);
/* oklch */ color: oklch(92.5% 0.131 99.6);
Tailwind
colors: {
  custom: {
    50: '#ffefa4',
    500: '#fbe87b',
    950: '#000000',
  },
}
SCSS
$custom: #fbe87b;
$custom-light: #ffefa4;
$custom-dark: #000000;
JSON
{
  "hex": "#fbe87b",
  "rgb": {
    "r": 251,
    "g": 232,
    "b": 123
  },
  "hsl": {
    "h": 51.094,
    "s": 94.118,
    "l": 73.333
  },
  "oklch": {
    "l": 0.9245,
    "c": 0.13149,
    "h": 99.6
  },
  "luminance": 0.79653
}

Semantic roles & 50–950 ramp

primary
#FBE87B
secondary
#4258D8
accent
#22E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #FBE87B

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

Preview Lab → · Contrast checker → · Palette generator →

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