#FBF28B#FBF28B

#FBF28B is a very light, vivid yellow. Relative luminance 0.859; OKLCH L 94.7% C 0.125 H 104.1°. Best body text is #000000 at 18.18:1 contrast (WCAG AA passes).

Color values

HEX#FBF28B
RGBrgb(251, 242, 139)
HSLhsl(55, 93%, 76%)
HSVhsv(55, 45%, 98%)
CMYKcmyk(0%, 3.6%, 44.6%, 1.6%)
CIE-LABlab(94.26, -10.78, 50.56)
CIE-LCHlch(94.26, 51.70, 102.03°)
OKLaboklab(94.68% -0.0306 0.1215)
OKLCHoklch(94.68% 0.125 104.1)
XYZxyz(76.1977, 85.8797, 36.9837)
Luminance0.8588 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FBF28B #8B94FB
analogous
#FBBA8B #FBF28B #CCFB8B
triadic
#FBF28B #8BFBF2 #F28BFB
tetradic
#FBF28B #8BFBBA #8B94FB #FB8BCC
square
#FBF28B #8BFBBA #8B94FB #FB8BCC
split-complementary
#FBF28B #8BCCFB #BA8BFB
monochromatic
#F7E515 #F9EB50 #FBF28B #FDF9C6 #FEFCE1

Accessibility & contrast

On white

1.16
#FBF28B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.18
#FBF28B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FBF28B
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FBF28B#FFFFFF#000000##000000
##FBF28B1.001.1618.1818.18
#FFFFFF1.161.0021.0021.00
#00000018.1821.001.001.00
##00000018.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB83
Deuteranopia (green-blind)
#FFF190
Tritanopia (blue-blind)
#FFE6D9
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #fbf28b;
/* rgb */ color: rgb(251, 242, 139);
/* oklch */ color: oklch(94.7% 0.125 104.1);
Tailwind
colors: {
  custom: {
    50: '#fef6ae',
    500: '#fbf28b',
    950: '#000000',
  },
}
SCSS
$custom: #fbf28b;
$custom-light: #fef6ae;
$custom-dark: #000000;
JSON
{
  "hex": "#fbf28b",
  "rgb": {
    "r": 251,
    "g": 242,
    "b": 139
  },
  "hsl": {
    "h": 55.179,
    "s": 93.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.94678,
    "c": 0.12526,
    "h": 104.1
  },
  "luminance": 0.85878
}

Semantic roles & 50–950 ramp

primary
#FBF28B
secondary
#505BDA
accent
#12E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #FBF28B

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

Preview Lab → · Contrast checker → · Palette generator →

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