#FBF298#FBF298

#FBF298 is a very light, moderate yellow. Relative luminance 0.863; OKLCH L 94.9% C 0.112 H 103.3°. Best body text is #000000 at 18.26:1 contrast (WCAG AA passes).

Color values

HEX#FBF298
RGBrgb(251, 242, 152)
HSLhsl(55, 93%, 79%)
HSVhsv(55, 39%, 98%)
CMYKcmyk(0%, 3.6%, 39.4%, 1.6%)
CIE-LABlab(94.43, -9.48, 44.48)
CIE-LCHlch(94.43, 45.48, 102.03°)
OKLaboklab(94.87% -0.0257 0.1085)
OKLCHoklch(94.87% 0.112 103.3)
XYZxyz(77.2046, 86.2825, 42.2869)
Luminance0.8628 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FBF298 #98A1FB
analogous
#FBC198 #FBF298 #D3FB98
triadic
#FBF298 #98FBF2 #F298FB
tetradic
#FBF298 #98FBC1 #98A1FB #FB98D3
square
#FBF298 #98FBC1 #98A1FB #FB98D3
split-complementary
#FBF298 #98D3FB #C198FB
monochromatic
#F6E322 #F9EB5D #FBF298 #FDF9D3 #FEFBE2

Accessibility & contrast

On white

1.15
#FBF298 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.26
#FBF298 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FBF298
18.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FBF298#FFFFFF#000000##000000
##FBF2981.001.1518.2618.26
#FFFFFF1.151.0021.0021.00
#00000018.2621.001.001.00
##00000018.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC91
Deuteranopia (green-blind)
#FFF19C
Tritanopia (blue-blind)
#FFE7DC
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #fbf298;
/* rgb */ color: rgb(251, 242, 152);
/* oklch */ color: oklch(94.9% 0.112 103.3);
Tailwind
colors: {
  custom: {
    50: '#fef6b7',
    500: '#fbf298',
    950: '#000000',
  },
}
SCSS
$custom: #fbf298;
$custom-light: #fef6b7;
$custom-dark: #000000;
JSON
{
  "hex": "#fbf298",
  "rgb": {
    "r": 251,
    "g": 242,
    "b": 152
  },
  "hsl": {
    "h": 54.545,
    "s": 92.523,
    "l": 79.02
  },
  "oklch": {
    "l": 0.9487,
    "c": 0.11153,
    "h": 103.3
  },
  "luminance": 0.8628
}

Semantic roles & 50–950 ramp

primary
#FBF298
secondary
#5B67DC
accent
#15E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #FBF298

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

Preview Lab → · Contrast checker → · Palette generator →

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