#FBF172#FBF172

#FBF172 is a very light, vivid yellow. Relative luminance 0.846; OKLCH L 94.2% C 0.148 H 104.8°. Best body text is #000000 at 17.93:1 contrast (WCAG AA passes).

Color values

HEX#FBF172
RGBrgb(251, 241, 114)
HSLhsl(56, 94%, 72%)
HSVhsv(56, 55%, 98%)
CMYKcmyk(0%, 4%, 54.6%, 1.6%)
CIE-LABlab(93.73, -12.41, 61.49)
CIE-LCHlch(93.73, 62.73, 101.41°)
OKLaboklab(94.16% -0.0377 0.1432)
OKLCHoklch(94.16% 0.148 104.8)
XYZxyz(74.2785, 84.6371, 28.3402)
Luminance0.8464 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FBF172 #727CFB
analogous
#FBAD72 #FBF172 #C1FB72
triadic
#FBF172 #72FBF1 #F172FB
tetradic
#FBF172 #72FBAD #727CFB #FB72C1
square
#FBF172 #72FBAD #727CFB #FB72C1
split-complementary
#FBF172 #72C1FB #AD72FB
monochromatic
#ECDB07 #F9EB36 #FBF172 #FDF7AE #FEFCE1

Accessibility & contrast

On white

1.17
#FBF172 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.93
#FBF172 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FBF172
17.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FBF172#FFFFFF#000000##000000
##FBF1721.001.1717.9317.93
#FFFFFF1.171.0021.0021.00
#00000017.9321.001.001.00
##00000017.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE965
Deuteranopia (green-blind)
#FFF078
Tritanopia (blue-blind)
#FFE3D5
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #fbf172;
/* rgb */ color: rgb(251, 241, 114);
/* oklch */ color: oklch(94.2% 0.148 104.8);
Tailwind
colors: {
  custom: {
    50: '#fff59e',
    500: '#fbf172',
    950: '#000000',
  },
}
SCSS
$custom: #fbf172;
$custom-light: #fff59e;
$custom-dark: #000000;
JSON
{
  "hex": "#fbf172",
  "rgb": {
    "r": 251,
    "g": 241,
    "b": 114
  },
  "hsl": {
    "h": 55.62,
    "s": 94.483,
    "l": 71.569
  },
  "oklch": {
    "l": 0.94163,
    "c": 0.14812,
    "h": 104.8
  },
  "luminance": 0.84635
}

Semantic roles & 50–950 ramp

primary
#FBF172
secondary
#3A46D7
accent
#11E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FBF172

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

Preview Lab → · Contrast checker → · Palette generator →

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