#FBF28C#FBF28C

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

Color values

HEX#FBF28C
RGBrgb(251, 242, 140)
HSLhsl(55, 93%, 77%)
HSVhsv(55, 44%, 98%)
CMYKcmyk(0%, 3.6%, 44.2%, 1.6%)
CIE-LABlab(94.27, -10.68, 50.10)
CIE-LCHlch(94.27, 51.22, 102.04°)
OKLaboklab(94.69% -0.0302 0.1205)
OKLCHoklch(94.69% 0.124 104.1)
XYZxyz(76.2711, 85.9091, 37.3702)
Luminance0.8591 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FBF28C #8C95FB
analogous
#FBBB8C #FBF28C #CDFB8C
triadic
#FBF28C #8CFBF2 #F28CFB
tetradic
#FBF28C #8CFBBB #8C95FB #FB8CCD
square
#FBF28C #8CFBBB #8C95FB #FB8CCD
split-complementary
#FBF28C #8CCDFB #BB8CFB
monochromatic
#F7E516 #F9EB51 #FBF28C #FDF9C7 #FEFCE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FBF28C#FFFFFF#000000##000000
##FBF28C1.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)
#FFEB84
Deuteranopia (green-blind)
#FFF190
Tritanopia (blue-blind)
#FFE6DA
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #fbf28c;
/* rgb */ color: rgb(251, 242, 140);
/* oklch */ color: oklch(94.7% 0.124 104.1);
Tailwind
colors: {
  custom: {
    50: '#fef6af',
    500: '#fbf28c',
    950: '#000000',
  },
}
SCSS
$custom: #fbf28c;
$custom-light: #fef6af;
$custom-dark: #000000;
JSON
{
  "hex": "#fbf28c",
  "rgb": {
    "r": 251,
    "g": 242,
    "b": 140
  },
  "hsl": {
    "h": 55.135,
    "s": 93.277,
    "l": 76.667
  },
  "oklch": {
    "l": 0.94692,
    "c": 0.12424,
    "h": 104.1
  },
  "luminance": 0.85907
}

Semantic roles & 50–950 ramp

primary
#FBF28C
secondary
#515CDA
accent
#13E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #FBF28C

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

Preview Lab → · Contrast checker → · Palette generator →

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