#FBF278#FBF278

#FBF278 is a very light, vivid yellow. Relative luminance 0.854; OKLCH L 94.4% C 0.144 H 105.0°. Best body text is #000000 at 18.07:1 contrast (WCAG AA passes).

Color values

HEX#FBF278
RGBrgb(251, 242, 120)
HSLhsl(56, 94%, 73%)
HSVhsv(56, 52%, 98%)
CMYKcmyk(0%, 3.6%, 52.2%, 1.6%)
CIE-LABlab(94.04, -12.43, 59.16)
CIE-LCHlch(94.04, 60.45, 101.87°)
OKLaboklab(94.43% -0.0372 0.1388)
OKLCHoklch(94.43% 0.144 105)
XYZxyz(74.9281, 85.3719, 30.2971)
Luminance0.8537 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FBF278 #7881FB
analogous
#FBB078 #FBF278 #C2FB78
triadic
#FBF278 #78FBF2 #F278FB
tetradic
#FBF278 #78FBB0 #7881FB #FB78C2
square
#FBF278 #78FBB0 #7881FB #FB78C2
split-complementary
#FBF278 #78C2FB #B078FB
monochromatic
#F1E107 #F9EC3D #FBF278 #FDF8B3 #FEFCE1

Accessibility & contrast

On white

1.16
#FBF278 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.07
#FBF278 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FBF278
18.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FBF278#FFFFFF#000000##000000
##FBF2781.001.1618.0718.07
#FFFFFF1.161.0021.0021.00
#00000018.0721.001.001.00
##00000018.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB6C
Deuteranopia (green-blind)
#FFF17E
Tritanopia (blue-blind)
#FFE4D6
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #fbf278;
/* rgb */ color: rgb(251, 242, 120);
/* oklch */ color: oklch(94.4% 0.144 105.0);
Tailwind
colors: {
  custom: {
    50: '#fff6a2',
    500: '#fbf278',
    950: '#000000',
  },
}
SCSS
$custom: #fbf278;
$custom-light: #fff6a2;
$custom-dark: #000000;
JSON
{
  "hex": "#fbf278",
  "rgb": {
    "r": 251,
    "g": 242,
    "b": 120
  },
  "hsl": {
    "h": 55.878,
    "s": 94.245,
    "l": 72.745
  },
  "oklch": {
    "l": 0.94434,
    "c": 0.14372,
    "h": 105
  },
  "luminance": 0.8537
}

Semantic roles & 50–950 ramp

primary
#FBF278
secondary
#3F4AD8
accent
#10E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FBF278

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

Preview Lab → · Contrast checker → · Palette generator →

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