#FBF171#FBF171

#FBF171 is a very light, vivid yellow. Relative luminance 0.846; OKLCH L 94.2% C 0.149 H 104.8°. Best body text is #000000 at 17.92:1 contrast (WCAG AA passes).

Color values

HEX#FBF171
RGBrgb(251, 241, 113)
HSLhsl(56, 95%, 71%)
HSVhsv(56, 55%, 98%)
CMYKcmyk(0%, 4%, 55%, 1.6%)
CIE-LABlab(93.72, -12.48, 61.92)
CIE-LCHlch(93.72, 63.17, 101.40°)
OKLaboklab(94.15% -0.038 0.1441)
OKLCHoklch(94.15% 0.149 104.8)
XYZxyz(74.2219, 84.6145, 28.0421)
Luminance0.8461 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FBF171 #717BFB
analogous
#FBAC71 #FBF171 #C0FB71
triadic
#FBF171 #71FBF1 #F171FB
tetradic
#FBF171 #71FBAC #717BFB #FB71C0
square
#FBF171 #71FBAC #717BFB #FB71C0
split-complementary
#FBF171 #71C0FB #AC71FB
monochromatic
#EBDA07 #F9EB35 #FBF171 #FDF7AD #FEFCE1

Accessibility & contrast

On white

1.17
#FBF171 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.92
#FBF171 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FBF171
17.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FBF171#FFFFFF#000000##000000
##FBF1711.001.1717.9217.92
#FFFFFF1.171.0021.0021.00
#00000017.9221.001.001.00
##00000017.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE964
Deuteranopia (green-blind)
#FFF078
Tritanopia (blue-blind)
#FFE3D5
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #fbf171;
/* rgb */ color: rgb(251, 241, 113);
/* oklch */ color: oklch(94.2% 0.149 104.8);
Tailwind
colors: {
  custom: {
    50: '#fff59e',
    500: '#fbf171',
    950: '#000000',
  },
}
SCSS
$custom: #fbf171;
$custom-light: #fff59e;
$custom-dark: #000000;
JSON
{
  "hex": "#fbf171",
  "rgb": {
    "r": 251,
    "g": 241,
    "b": 113
  },
  "hsl": {
    "h": 55.652,
    "s": 94.521,
    "l": 71.373
  },
  "oklch": {
    "l": 0.94152,
    "c": 0.149,
    "h": 104.8
  },
  "luminance": 0.84612
}

Semantic roles & 50–950 ramp

primary
#FBF171
secondary
#3945D7
accent
#11E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FBF171

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

Preview Lab → · Contrast checker → · Palette generator →

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