#FBF796#FBF796

#FBF796 is a very light, moderate yellow. Relative luminance 0.892; OKLCH L 95.9% C 0.119 H 106.4°. Best body text is #000000 at 18.85:1 contrast (WCAG AA passes).

Color values

HEX#FBF796
RGBrgb(251, 247, 150)
HSLhsl(58, 93%, 79%)
HSVhsv(58, 40%, 98%)
CMYKcmyk(0%, 1.6%, 40.2%, 1.6%)
CIE-LABlab(95.68, -12.15, 47.04)
CIE-LCHlch(95.68, 48.58, 104.49°)
OKLaboklab(95.85% -0.0336 0.1142)
OKLCHoklch(95.85% 0.119 106.4)
XYZxyz(78.5508, 89.2346, 41.9344)
Luminance0.8923 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FBF796 #969AFB
analogous
#FBC496 #FBF796 #CCFB96
triadic
#FBF796 #96FBF7 #F796FB
tetradic
#FBF796 #96FBC4 #969AFB #FB96CC
square
#FBF796 #96FBC4 #969AFB #FB96CC
split-complementary
#FBF796 #96CCFB #C496FB
monochromatic
#F7EE20 #F9F35B #FBF796 #FDFBD1 #FEFDE2

Accessibility & contrast

On white

1.11
#FBF796 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.85
#FBF796 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FBF796
18.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FBF796#FFFFFF#000000##000000
##FBF7961.001.1118.8518.85
#FFFFFF1.111.0021.0021.00
#00000018.8521.001.001.00
##00000018.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF08E
Deuteranopia (green-blind)
#FFF59A
Tritanopia (blue-blind)
#FFECDF
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fbf796;
/* rgb */ color: rgb(251, 247, 150);
/* oklch */ color: oklch(95.9% 0.119 106.4);
Tailwind
colors: {
  custom: {
    50: '#fef9b6',
    500: '#fbf796',
    950: '#000000',
  },
}
SCSS
$custom: #fbf796;
$custom-light: #fef9b6;
$custom-dark: #000000;
JSON
{
  "hex": "#fbf796",
  "rgb": {
    "r": 251,
    "g": 247,
    "b": 150
  },
  "hsl": {
    "h": 57.624,
    "s": 92.661,
    "l": 78.627
  },
  "oklch": {
    "l": 0.9585,
    "c": 0.11905,
    "h": 106.4
  },
  "luminance": 0.89233
}

Semantic roles & 50–950 ramp

primary
#FBF796
secondary
#595FDC
accent
#09E600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FBF796

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

Preview Lab → · Contrast checker → · Palette generator →

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