#FBF271#FBF271

#FBF271 is a very light, vivid yellow. Relative luminance 0.852; OKLCH L 94.4% C 0.150 H 105.2°. Best body text is #000000 at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#FBF271
RGBrgb(251, 242, 113)
HSLhsl(56, 95%, 71%)
HSVhsv(56, 55%, 98%)
CMYKcmyk(0%, 3.6%, 55%, 1.6%)
CIE-LABlab(93.97, -12.97, 62.21)
CIE-LCHlch(93.97, 63.55, 101.78°)
OKLaboklab(94.36% -0.0394 0.1447)
OKLCHoklch(94.36% 0.15 105.2)
XYZxyz(74.5187, 85.2081, 28.1410)
Luminance0.8521 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FBF271 #717AFB
analogous
#FBAD71 #FBF271 #BFFB71
triadic
#FBF271 #71FBF2 #F271FB
tetradic
#FBF271 #71FBAD #717AFB #FB71BF
square
#FBF271 #71FBAD #717AFB #FB71BF
split-complementary
#FBF271 #71BFFB #AD71FB
monochromatic
#EBDC07 #F9ED35 #FBF271 #FDF7AD #FEFCE1

Accessibility & contrast

On white

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

On black

18.04
#FBF271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FBF271
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FBF271#FFFFFF#000000##000000
##FBF2711.001.1618.0418.04
#FFFFFF1.161.0021.0021.00
#00000018.0421.001.001.00
##00000018.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA64
Deuteranopia (green-blind)
#FFF078
Tritanopia (blue-blind)
#FFE4D5
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #fbf271;
/* rgb */ color: rgb(251, 242, 113);
/* oklch */ color: oklch(94.4% 0.150 105.2);
Tailwind
colors: {
  custom: {
    50: '#fff69e',
    500: '#fbf271',
    950: '#000000',
  },
}
SCSS
$custom: #fbf271;
$custom-light: #fff69e;
$custom-dark: #000000;
JSON
{
  "hex": "#fbf271",
  "rgb": {
    "r": 251,
    "g": 242,
    "b": 113
  },
  "hsl": {
    "h": 56.087,
    "s": 94.521,
    "l": 71.373
  },
  "oklch": {
    "l": 0.94356,
    "c": 0.14997,
    "h": 105.2
  },
  "luminance": 0.85206
}

Semantic roles & 50–950 ramp

primary
#FBF271
secondary
#3944D7
accent
#0FE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FBF271

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

Preview Lab → · Contrast checker → · Palette generator →

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