#FFFF9B#FFFF9B

#FFFF9B is a very light, vivid yellow. Relative luminance 0.951; OKLCH L 97.9% C 0.122 H 108.5°. Best body text is #000000 at 20.03:1 contrast (WCAG AA passes).

Color values

HEX#FFFF9B
RGBrgb(255, 255, 155)
HSLhsl(60, 100%, 80%)
HSVhsv(60, 39%, 100%)
CMYKcmyk(0%, 0%, 39.2%, 0%)
CIE-LABlab(98.09, -14.02, 47.73)
CIE-LCHlch(98.09, 49.75, 106.37°)
OKLaboklab(97.87% -0.0387 0.116)
OKLCHoklch(97.87% 0.122 108.5)
XYZxyz(82.9176, 95.1482, 45.0015)
Luminance0.9515 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFFF9B #9B9BFF
analogous
#FFCD9B #FFFF9B #CDFF9B
triadic
#FFFF9B #9BFFFF #FF9BFF
tetradic
#FFFF9B #9BFFCD #9B9BFF #FF9BCD
square
#FFFF9B #9BFFCD #9B9BFF #FF9BCD
split-complementary
#FFFF9B #9BCDFF #CD9BFF
monochromatic
#FFFF21 #FFFF5E #FFFF9B #FFFFD8 #FFFFE0

Accessibility & contrast

On white

1.05
#FFFF9B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

20.03
#FFFF9B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFFF9B
20.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFFF9B#FFFFFF#000000##000000
##FFFF9B1.001.0520.0320.03
#FFFFFF1.051.0021.0021.00
#00000020.0321.001.001.00
##00000020.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF793
Deuteranopia (green-blind)
#FFFB9F
Tritanopia (blue-blind)
#FFF4E7
Achromatopsia (no color)
#F9F9F9

Design tokens & code

CSS
--color: #ffff9b;
/* rgb */ color: rgb(255, 255, 155);
/* oklch */ color: oklch(97.9% 0.122 108.5);
Tailwind
colors: {
  custom: {
    50: '#ffffba',
    500: '#ffff9b',
    950: '#000000',
  },
}
SCSS
$custom: #ffff9b;
$custom-light: #ffffba;
$custom-dark: #000000;
JSON
{
  "hex": "#ffff9b",
  "rgb": {
    "r": 255,
    "g": 255,
    "b": 155
  },
  "hsl": {
    "h": 60,
    "s": 100,
    "l": 80.392
  },
  "oklch": {
    "l": 0.97865,
    "c": 0.12231,
    "h": 108.5
  },
  "luminance": 0.95147
}

Semantic roles & 50–950 ramp

primary
#FFFF9B
secondary
#5C5CE2
accent
#00E600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181712
muted
#868582

Preview Lab

Preview with #FFFF9B

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

Preview Lab → · Contrast checker → · Palette generator →

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