#FBF28A#FBF28A

#FBF28A is a very light, vivid yellow. Relative luminance 0.858; OKLCH L 94.7% C 0.126 H 104.2°. Best body text is #000000 at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#FBF28A
RGBrgb(251, 242, 138)
HSLhsl(55, 93%, 76%)
HSVhsv(55, 45%, 98%)
CMYKcmyk(0%, 3.6%, 45%, 1.6%)
CIE-LABlab(94.25, -10.87, 51.02)
CIE-LCHlch(94.25, 52.17, 102.03°)
OKLaboklab(94.66% -0.0309 0.1224)
OKLCHoklch(94.66% 0.126 104.2)
XYZxyz(76.1250, 85.8506, 36.6006)
Luminance0.8585 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FBF28A #8A93FB
analogous
#FBBA8A #FBF28A #CCFB8A
triadic
#FBF28A #8AFBF2 #F28AFB
tetradic
#FBF28A #8AFBBA #8A93FB #FB8ACC
square
#FBF28A #8AFBBA #8A93FB #FB8ACC
split-complementary
#FBF28A #8ACCFB #BA8AFB
monochromatic
#F7E514 #F9EB4F #FBF28A #FDF9C5 #FEFCE1

Accessibility & contrast

On white

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

On black

18.17
#FBF28A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FBF28A
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FBF28A#FFFFFF#000000##000000
##FBF28A1.001.1618.1718.17
#FFFFFF1.161.0021.0021.00
#00000018.1721.001.001.00
##00000018.1721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fbf28a;
/* rgb */ color: rgb(251, 242, 138);
/* oklch */ color: oklch(94.7% 0.126 104.2);
Tailwind
colors: {
  custom: {
    50: '#fef6ae',
    500: '#fbf28a',
    950: '#000000',
  },
}
SCSS
$custom: #fbf28a;
$custom-light: #fef6ae;
$custom-dark: #000000;
JSON
{
  "hex": "#fbf28a",
  "rgb": {
    "r": 251,
    "g": 242,
    "b": 138
  },
  "hsl": {
    "h": 55.221,
    "s": 93.388,
    "l": 76.275
  },
  "oklch": {
    "l": 0.94664,
    "c": 0.12629,
    "h": 104.2
  },
  "luminance": 0.85848
}

Semantic roles & 50–950 ramp

primary
#FBF28A
secondary
#4F5ADA
accent
#12E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #FBF28A

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

Preview Lab → · Contrast checker → · Palette generator →

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