#FBF397#FBF397

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

Color values

HEX#FBF397
RGBrgb(251, 243, 151)
HSLhsl(55, 93%, 79%)
HSVhsv(55, 40%, 98%)
CMYKcmyk(0%, 3.2%, 39.8%, 1.6%)
CIE-LABlab(94.67, -10.08, 45.28)
CIE-LCHlch(94.67, 46.39, 102.55°)
OKLaboklab(95.06% -0.0275 0.1103)
OKLCHoklch(95.06% 0.114 104)
XYZxyz(77.4215, 86.8468, 41.9569)
Luminance0.8685 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FBF397 #979FFB
analogous
#FBC197 #FBF397 #D1FB97
triadic
#FBF397 #97FBF3 #F397FB
tetradic
#FBF397 #97FBC1 #979FFB #FB97D1
square
#FBF397 #97FBC1 #979FFB #FB97D1
split-complementary
#FBF397 #97D1FB #C197FB
monochromatic
#F6E521 #F9EC5C #FBF397 #FDFAD2 #FEFCE2

Accessibility & contrast

On white

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

On black

18.37
#FBF397 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FBF397
18.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FBF397#FFFFFF#000000##000000
##FBF3971.001.1418.3718.37
#FFFFFF1.141.0021.0021.00
#00000018.3721.001.001.00
##00000018.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED90
Deuteranopia (green-blind)
#FFF29B
Tritanopia (blue-blind)
#FFE8DC
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #fbf397;
/* rgb */ color: rgb(251, 243, 151);
/* oklch */ color: oklch(95.1% 0.114 104.0);
Tailwind
colors: {
  custom: {
    50: '#fef6b7',
    500: '#fbf397',
    950: '#000000',
  },
}
SCSS
$custom: #fbf397;
$custom-light: #fef6b7;
$custom-dark: #000000;
JSON
{
  "hex": "#fbf397",
  "rgb": {
    "r": 251,
    "g": 243,
    "b": 151
  },
  "hsl": {
    "h": 55.2,
    "s": 92.593,
    "l": 78.824
  },
  "oklch": {
    "l": 0.95056,
    "c": 0.11367,
    "h": 104
  },
  "luminance": 0.86845
}

Semantic roles & 50–950 ramp

primary
#FBF397
secondary
#5A65DC
accent
#12E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #FBF397

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

Preview Lab → · Contrast checker → · Palette generator →

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