#FBE87F#FBE87F

#FBE87F is a very light, vivid yellow. Relative luminance 0.798; OKLCH L 92.5% C 0.128 H 99.3°. Best body text is #000000 at 16.95:1 contrast (WCAG AA passes).

Color values

HEX#FBE87F
RGBrgb(251, 232, 127)
HSLhsl(51, 94%, 74%)
HSVhsv(51, 49%, 98%)
CMYKcmyk(0%, 7.6%, 49.4%, 1.6%)
CIE-LABlab(91.58, -6.90, 52.99)
CIE-LCHlch(91.58, 53.44, 97.42°)
OKLaboklab(92.5% -0.0205 0.126)
OKLCHoklch(92.5% 0.128 99.3)
XYZxyz(72.4732, 79.7574, 31.6517)
Luminance0.7975 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FBE87F #7F92FB
analogous
#FBAA7F #FBE87F #D0FB7F
triadic
#FBE87F #7FFBE8 #E87FFB
tetradic
#FBE87F #7FFBAA #7F92FB #FB7FD0
square
#FBE87F #7FFBAA #7F92FB #FB7FD0
split-complementary
#FBE87F #7FD0FB #AA7FFB
monochromatic
#F7D308 #F9DD44 #FBE87F #FDF3BA #FEFAE1

Accessibility & contrast

On white

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

On black

16.95
#FBE87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FBE87F
16.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FBE87F#FFFFFF#000000##000000
##FBE87F1.001.2416.9516.95
#FFFFFF1.241.0021.0021.00
#00000016.9521.001.001.00
##00000016.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE376
Deuteranopia (green-blind)
#FFEA84
Tritanopia (blue-blind)
#FFDBCF
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #fbe87f;
/* rgb */ color: rgb(251, 232, 127);
/* oklch */ color: oklch(92.5% 0.128 99.3);
Tailwind
colors: {
  custom: {
    50: '#ffefa6',
    500: '#fbe87f',
    950: '#000000',
  },
}
SCSS
$custom: #fbe87f;
$custom-light: #ffefa6;
$custom-dark: #000000;
JSON
{
  "hex": "#fbe87f",
  "rgb": {
    "r": 251,
    "g": 232,
    "b": 127
  },
  "hsl": {
    "h": 50.806,
    "s": 93.939,
    "l": 74.118
  },
  "oklch": {
    "l": 0.92501,
    "c": 0.12765,
    "h": 99.3
  },
  "luminance": 0.79755
}

Semantic roles & 50–950 ramp

primary
#FBE87F
secondary
#465CD9
accent
#23E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #FBE87F

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

Preview Lab → · Contrast checker → · Palette generator →

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