#FBF398#FBF398

#FBF398 is a very light, moderate yellow. Relative luminance 0.869; OKLCH L 95.1% C 0.113 H 104.0°. Best body text is #000000 at 18.38:1 contrast (WCAG AA passes).

Color values

HEX#FBF398
RGBrgb(251, 243, 152)
HSLhsl(55, 93%, 79%)
HSVhsv(55, 39%, 98%)
CMYKcmyk(0%, 3.2%, 39.4%, 1.6%)
CIE-LABlab(94.69, -9.98, 44.81)
CIE-LCHlch(94.69, 45.90, 102.55°)
OKLaboklab(95.07% -0.0272 0.1093)
OKLCHoklch(95.07% 0.113 104)
XYZxyz(77.5031, 86.8794, 42.3864)
Luminance0.8688 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FBF398 #98A0FB
analogous
#FBC298 #FBF398 #D2FB98
triadic
#FBF398 #98FBF3 #F398FB
tetradic
#FBF398 #98FBC2 #98A0FB #FB98D2
square
#FBF398 #98FBC2 #98A0FB #FB98D2
split-complementary
#FBF398 #98D2FB #C298FB
monochromatic
#F6E522 #F9EC5D #FBF398 #FDFAD3 #FEFCE2

Accessibility & contrast

On white

1.14
#FBF398 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.38
#FBF398 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FBF398
18.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FBF398#FFFFFF#000000##000000
##FBF3981.001.1418.3818.38
#FFFFFF1.141.0021.0021.00
#00000018.3821.001.001.00
##00000018.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED91
Deuteranopia (green-blind)
#FFF29C
Tritanopia (blue-blind)
#FFE8DD
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #fbf398;
/* rgb */ color: rgb(251, 243, 152);
/* oklch */ color: oklch(95.1% 0.113 104.0);
Tailwind
colors: {
  custom: {
    50: '#fef6b7',
    500: '#fbf398',
    950: '#000000',
  },
}
SCSS
$custom: #fbf398;
$custom-light: #fef6b7;
$custom-dark: #000000;
JSON
{
  "hex": "#fbf398",
  "rgb": {
    "r": 251,
    "g": 243,
    "b": 152
  },
  "hsl": {
    "h": 55.152,
    "s": 92.523,
    "l": 79.02
  },
  "oklch": {
    "l": 0.95072,
    "c": 0.11258,
    "h": 104
  },
  "luminance": 0.86877
}

Semantic roles & 50–950 ramp

primary
#FBF398
secondary
#5B66DC
accent
#13E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #FBF398

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

Preview Lab → · Contrast checker → · Palette generator →

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