#FFFF9F#FFFF9F

#FFFF9F is a very light, moderate yellow. Relative luminance 0.953; OKLCH L 97.9% C 0.118 H 108.4°. Best body text is #000000 at 20.06:1 contrast (WCAG AA passes).

Color values

HEX#FFFF9F
RGBrgb(255, 255, 159)
HSLhsl(60, 100%, 81%)
HSVhsv(60, 38%, 100%)
CMYKcmyk(0%, 0%, 37.6%, 0%)
CIE-LABlab(98.15, -13.60, 45.87)
CIE-LCHlch(98.15, 47.84, 106.52°)
OKLaboklab(97.93% -0.0372 0.112)
OKLCHoklch(97.93% 0.118 108.4)
XYZxyz(83.2591, 95.2848, 46.8000)
Luminance0.9528 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFFF9F #9F9FFF
analogous
#FFCF9F #FFFF9F #CFFF9F
triadic
#FFFF9F #9FFFFF #FF9FFF
tetradic
#FFFF9F #9FFFCF #9F9FFF #FF9FCF
square
#FFFF9F #9FFFCF #9F9FFF #FF9FCF
split-complementary
#FFFF9F #9FCFFF #CF9FFF
monochromatic
#FFFF25 #FFFF62 #FFFF9F #FFFFDC #FFFFE0

Accessibility & contrast

On white

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

On black

20.06
#FFFF9F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFFF9F
20.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFFF9F#FFFFFF#000000##000000
##FFFF9F1.001.0520.0620.06
#FFFFFF1.051.0021.0021.00
#00000020.0621.001.001.00
##00000020.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF898
Deuteranopia (green-blind)
#FFFBA3
Tritanopia (blue-blind)
#FFF4E7
Achromatopsia (no color)
#FAFAFA

Design tokens & code

CSS
--color: #ffff9f;
/* rgb */ color: rgb(255, 255, 159);
/* oklch */ color: oklch(97.9% 0.118 108.4);
Tailwind
colors: {
  custom: {
    50: '#ffffbc',
    500: '#ffff9f',
    950: '#000000',
  },
}
SCSS
$custom: #ffff9f;
$custom-light: #ffffbc;
$custom-dark: #000000;
JSON
{
  "hex": "#ffff9f",
  "rgb": {
    "r": 255,
    "g": 255,
    "b": 159
  },
  "hsl": {
    "h": 60,
    "s": 100,
    "l": 81.176
  },
  "oklch": {
    "l": 0.97926,
    "c": 0.11801,
    "h": 108.4
  },
  "luminance": 0.95283
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FFFF9F

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

Preview Lab → · Contrast checker → · Palette generator →

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