#FFFB8A#FFFB8A

#FFFB8A is a very light, vivid yellow. Relative luminance 0.921; OKLCH L 96.8% C 0.135 H 106.9°. Best body text is #000000 at 19.42:1 contrast (WCAG AA passes).

Color values

HEX#FFFB8A
RGBrgb(255, 251, 138)
HSLhsl(58, 100%, 77%)
HSVhsv(58, 46%, 100%)
CMYKcmyk(0%, 1.6%, 45.9%, 0%)
CIE-LABlab(96.86, -13.73, 54.29)
CIE-LCHlch(96.86, 56.00, 104.19°)
OKLaboklab(96.81% -0.0393 0.1296)
OKLCHoklch(96.81% 0.135 106.9)
XYZxyz(80.3264, 92.0914, 37.5839)
Luminance0.9209 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFFB8A #8A8EFF
analogous
#FFC18A #FFFB8A #C8FF8A
triadic
#FFFB8A #8AFFFB #FB8AFF
tetradic
#FFFB8A #8AFFC1 #8A8EFF #FF8AC8
square
#FFFB8A #8AFFC1 #8A8EFF #FF8AC8
split-complementary
#FFFB8A #8AC8FF #C18AFF
monochromatic
#FFF710 #FFF94D #FFFB8A #FFFDC7 #FFFEE0

Accessibility & contrast

On white

1.08
#FFFB8A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.42
#FFFB8A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFFB8A
19.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFFB8A#FFFFFF#000000##000000
##FFFB8A1.001.0819.4219.42
#FFFFFF1.081.0021.0021.00
#00000019.4221.001.001.00
##00000019.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF380
Deuteranopia (green-blind)
#FFF88F
Tritanopia (blue-blind)
#FFEEE0
Achromatopsia (no color)
#F6F6F6

Design tokens & code

CSS
--color: #fffb8a;
/* rgb */ color: rgb(255, 251, 138);
/* oklch */ color: oklch(96.8% 0.135 106.9);
Tailwind
colors: {
  custom: {
    50: '#fffcae',
    500: '#fffb8a',
    950: '#000000',
  },
}
SCSS
$custom: #fffb8a;
$custom-light: #fffcae;
$custom-dark: #000000;
JSON
{
  "hex": "#fffb8a",
  "rgb": {
    "r": 255,
    "g": 251,
    "b": 138
  },
  "hsl": {
    "h": 57.949,
    "s": 100,
    "l": 77.059
  },
  "oklch": {
    "l": 0.96813,
    "c": 0.13547,
    "h": 106.9
  },
  "luminance": 0.92089
}

Semantic roles & 50–950 ramp

primary
#FFFB8A
secondary
#4E53E0
accent
#08E600
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#181710
muted
#868581

Preview Lab

Preview with #FFFB8A

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

Preview Lab → · Contrast checker → · Palette generator →

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