#FBF371#FBF371

#FBF371 is a very light, vivid yellow. Relative luminance 0.858; OKLCH L 94.6% C 0.151 H 105.7°. Best body text is #000000 at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#FBF371
RGBrgb(251, 243, 113)
HSLhsl(57, 95%, 71%)
HSVhsv(57, 55%, 98%)
CMYKcmyk(0%, 3.2%, 55%, 1.6%)
CIE-LABlab(94.23, -13.46, 62.50)
CIE-LCHlch(94.23, 63.94, 102.16°)
OKLaboklab(94.56% -0.0408 0.1453)
OKLCHoklch(94.56% 0.151 105.7)
XYZxyz(74.8172, 85.8050, 28.2405)
Luminance0.8580 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FBF371 #7179FB
analogous
#FBAE71 #FBF371 #BEFB71
triadic
#FBF371 #71FBF3 #F371FB
tetradic
#FBF371 #71FBAE #7179FB #FB71BE
square
#FBF371 #71FBAE #7179FB #FB71BE
split-complementary
#FBF371 #71BEFB #AE71FB
monochromatic
#EBDE07 #F9EE35 #FBF371 #FDF8AD #FEFCE1

Accessibility & contrast

On white

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

On black

18.16
#FBF371 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FBF371
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FBF371#FFFFFF#000000##000000
##FBF3711.001.1618.1618.16
#FFFFFF1.161.0021.0021.00
#00000018.1621.001.001.00
##00000018.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB64
Deuteranopia (green-blind)
#FFF178
Tritanopia (blue-blind)
#FFE5D6
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #fbf371;
/* rgb */ color: rgb(251, 243, 113);
/* oklch */ color: oklch(94.6% 0.151 105.7);
Tailwind
colors: {
  custom: {
    50: '#fff69e',
    500: '#fbf371',
    950: '#000000',
  },
}
SCSS
$custom: #fbf371;
$custom-light: #fff69e;
$custom-dark: #000000;
JSON
{
  "hex": "#fbf371",
  "rgb": {
    "r": 251,
    "g": 243,
    "b": 113
  },
  "hsl": {
    "h": 56.522,
    "s": 94.521,
    "l": 71.373
  },
  "oklch": {
    "l": 0.94559,
    "c": 0.15095,
    "h": 105.7
  },
  "luminance": 0.85803
}

Semantic roles & 50–950 ramp

primary
#FBF371
secondary
#3943D7
accent
#0DE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FBF371

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

Preview Lab → · Contrast checker → · Palette generator →

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