#FFFFAF#FFFFAF

#FFFFAF is a very light, moderate yellow. Relative luminance 0.959; OKLCH L 98.2% C 0.100 H 108.1°. Best body text is #000000 at 20.18:1 contrast (WCAG AA passes).

Color values

HEX#FFFFAF
RGBrgb(255, 255, 175)
HSLhsl(60, 100%, 84%)
HSVhsv(60, 31%, 100%)
CMYKcmyk(0%, 0%, 31.4%, 0%)
CIE-LABlab(98.38, -11.80, 38.33)
CIE-LCHlch(98.38, 40.10, 107.12°)
OKLaboklab(98.19% -0.0311 0.0951)
OKLCHoklch(98.19% 0.1 108.1)
XYZxyz(84.7384, 95.8766, 54.5912)
Luminance0.9587 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFFFAF #AFAFFF
analogous
#FFD7AF #FFFFAF #D7FFAF
triadic
#FFFFAF #AFFFFF #FFAFFF
tetradic
#FFFFAF #AFFFD7 #AFAFFF #FFAFD7
square
#FFFFAF #AFFFD7 #AFAFFF #FFAFD7
split-complementary
#FFFFAF #AFD7FF #D7AFFF
monochromatic
#FFFF35 #FFFF72 #FFFFAF #FFFFE0 #FFFFE0

Accessibility & contrast

On white

1.04
#FFFFAF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

20.18
#FFFFAF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFFFAF
20.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFFFAF#FFFFFF#000000##000000
##FFFFAF1.001.0420.1820.18
#FFFFFF1.041.0021.0021.00
#00000020.1821.001.001.00
##00000020.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF9A9
Deuteranopia (green-blind)
#FFFCB2
Tritanopia (blue-blind)
#FFF5EA
Achromatopsia (no color)
#FAFAFA

Design tokens & code

CSS
--color: #ffffaf;
/* rgb */ color: rgb(255, 255, 175);
/* oklch */ color: oklch(98.2% 0.100 108.1);
Tailwind
colors: {
  custom: {
    50: '#ffffc7',
    500: '#ffffaf',
    950: '#000000',
  },
}
SCSS
$custom: #ffffaf;
$custom-light: #ffffc7;
$custom-dark: #000000;
JSON
{
  "hex": "#ffffaf",
  "rgb": {
    "r": 255,
    "g": 255,
    "b": 175
  },
  "hsl": {
    "h": 60,
    "s": 100,
    "l": 84.314
  },
  "oklch": {
    "l": 0.98191,
    "c": 0.1001,
    "h": 108.1
  },
  "luminance": 0.95875
}

Semantic roles & 50–950 ramp

primary
#FFFFAF
secondary
#6D6DE5
accent
#00E600
background
#FFFFFD
surface
#FFFFF9
border
#D7D7D2
text
#181713
muted
#868582

Preview Lab

Preview with #FFFFAF

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

Preview Lab → · Contrast checker → · Palette generator →

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