#FBF998#FBF998

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

Color values

HEX#FBF998
RGBrgb(251, 249, 152)
HSLhsl(59, 93%, 79%)
HSVhsv(59, 39%, 98%)
CMYKcmyk(0%, 0.8%, 39.4%, 1.6%)
CIE-LABlab(96.22, -12.93, 46.75)
CIE-LCHlch(96.22, 48.50, 105.46°)
OKLaboklab(96.29% -0.0356 0.1137)
OKLCHoklch(96.29% 0.119 107.4)
XYZxyz(79.3281, 90.5293, 42.9947)
Luminance0.9053 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FBF998 #989AFB
analogous
#FBC898 #FBF998 #CCFB98
triadic
#FBF998 #98FBF9 #F998FB
tetradic
#FBF998 #98FBC8 #989AFB #FB98CC
square
#FBF998 #98FBC8 #989AFB #FB98CC
split-complementary
#FBF998 #98CCFB #C898FB
monochromatic
#F6F222 #F9F65D #FBF998 #FDFCD3 #FEFDE2

Accessibility & contrast

On white

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

On black

19.11
#FBF998 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FBF998
19.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FBF998#FFFFFF#000000##000000
##FBF9981.001.1019.1119.11
#FFFFFF1.101.0021.0021.00
#00000019.1121.001.001.00
##00000019.1121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fbf998;
/* rgb */ color: rgb(251, 249, 152);
/* oklch */ color: oklch(96.3% 0.119 107.4);
Tailwind
colors: {
  custom: {
    50: '#fefbb7',
    500: '#fbf998',
    950: '#000000',
  },
}
SCSS
$custom: #fbf998;
$custom-light: #fefbb7;
$custom-dark: #000000;
JSON
{
  "hex": "#fbf998",
  "rgb": {
    "r": 251,
    "g": 249,
    "b": 152
  },
  "hsl": {
    "h": 58.788,
    "s": 92.523,
    "l": 79.02
  },
  "oklch": {
    "l": 0.96286,
    "c": 0.11912,
    "h": 107.4
  },
  "luminance": 0.90528
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FBF998

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

Preview Lab → · Contrast checker → · Palette generator →

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