#FBF997#FBF997

#FBF997 is a very light, vivid yellow. Relative luminance 0.905; OKLCH L 96.3% C 0.120 H 107.4°. Best body text is #000000 at 19.10:1 contrast (WCAG AA passes).

Color values

HEX#FBF997
RGBrgb(251, 249, 151)
HSLhsl(59, 93%, 79%)
HSVhsv(59, 40%, 98%)
CMYKcmyk(0%, 0.8%, 39.8%, 1.6%)
CIE-LABlab(96.20, -13.03, 47.21)
CIE-LCHlch(96.20, 48.98, 105.43°)
OKLaboklab(96.27% -0.036 0.1147)
OKLCHoklch(96.27% 0.12 107.4)
XYZxyz(79.2465, 90.4967, 42.5652)
Luminance0.9050 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FBF997 #9799FB
analogous
#FBC797 #FBF997 #CBFB97
triadic
#FBF997 #97FBF9 #F997FB
tetradic
#FBF997 #97FBC7 #9799FB #FB97CB
square
#FBF997 #97FBC7 #9799FB #FB97CB
split-complementary
#FBF997 #97CBFB #C797FB
monochromatic
#F6F221 #F9F65C #FBF997 #FDFCD2 #FEFDE2

Accessibility & contrast

On white

1.10
#FBF997 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.10
#FBF997 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FBF997
19.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FBF997#FFFFFF#000000##000000
##FBF9971.001.1019.1019.10
#FFFFFF1.101.0021.0021.00
#00000019.1021.001.001.00
##00000019.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF28F
Deuteranopia (green-blind)
#FFF69B
Tritanopia (blue-blind)
#FFEEE1
Achromatopsia (no color)
#F4F4F4

Design tokens & code

CSS
--color: #fbf997;
/* rgb */ color: rgb(251, 249, 151);
/* oklch */ color: oklch(96.3% 0.120 107.4);
Tailwind
colors: {
  custom: {
    50: '#fefbb7',
    500: '#fbf997',
    950: '#000000',
  },
}
SCSS
$custom: #fbf997;
$custom-light: #fefbb7;
$custom-dark: #000000;
JSON
{
  "hex": "#fbf997",
  "rgb": {
    "r": 251,
    "g": 249,
    "b": 151
  },
  "hsl": {
    "h": 58.8,
    "s": 92.593,
    "l": 78.824
  },
  "oklch": {
    "l": 0.96271,
    "c": 0.1202,
    "h": 107.4
  },
  "luminance": 0.90495
}

Semantic roles & 50–950 ramp

primary
#FBF997
secondary
#5A5DDC
accent
#05E600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FBF997

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

Preview Lab → · Contrast checker → · Palette generator →

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