#FFF2AA#FFF2AA

#FFF2AA is a very light, moderate yellow. Relative luminance 0.877; OKLCH L 95.5% C 0.092 H 99.2°. Best body text is #000000 at 18.53:1 contrast (WCAG AA passes).

Color values

HEX#FFF2AA
RGBrgb(255, 242, 170)
HSLhsl(51, 100%, 83%)
HSVhsv(51, 33%, 100%)
CMYKcmyk(0%, 5.1%, 33.3%, 0%)
CIE-LABlab(95.02, -5.97, 36.38)
CIE-LCHlch(95.02, 36.87, 99.31°)
OKLaboklab(95.5% -0.0146 0.0904)
OKLCHoklch(95.5% 0.092 99.2)
XYZxyz(80.2488, 87.6686, 50.7168)
Luminance0.8767 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF2AA #AAB7FF
analogous
#FFC7AA #FFF2AA #E1FFAA
triadic
#FFF2AA #AAFFF2 #F2AAFF
tetradic
#FFF2AA #AAFFC7 #AAB7FF #FFAAE1
square
#FFF2AA #AAFFC7 #AAB7FF #FFAAE1
split-complementary
#FFF2AA #AAE1FF #C7AAFF
monochromatic
#FFDF30 #FFE96D #FFF2AA #FFFAE0 #FFFAE0

Accessibility & contrast

On white

1.13
#FFF2AA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.53
#FFF2AA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF2AA
18.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF2AA#FFFFFF#000000##000000
##FFF2AA1.001.1318.5318.53
#FFFFFF1.131.0021.0021.00
#00000018.5321.001.001.00
##00000018.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEEA5
Deuteranopia (green-blind)
#FFF3AD
Tritanopia (blue-blind)
#FFE8DF
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fff2aa;
/* rgb */ color: rgb(255, 242, 170);
/* oklch */ color: oklch(95.5% 0.092 99.2);
Tailwind
colors: {
  custom: {
    50: '#fff6c4',
    500: '#fff2aa',
    950: '#000000',
  },
}
SCSS
$custom: #fff2aa;
$custom-light: #fff6c4;
$custom-dark: #000000;
JSON
{
  "hex": "#fff2aa",
  "rgb": {
    "r": 255,
    "g": 242,
    "b": 170
  },
  "hsl": {
    "h": 50.824,
    "s": 100,
    "l": 83.333
  },
  "oklch": {
    "l": 0.95501,
    "c": 0.09161,
    "h": 99.2
  },
  "luminance": 0.87667
}

Semantic roles & 50–950 ramp

primary
#FFF2AA
secondary
#697CE4
accent
#23E600
background
#FFFFFD
surface
#FFFEF9
border
#D7D6D2
text
#181712
muted
#868582

Preview Lab

Preview with #FFF2AA

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

Preview Lab → · Contrast checker → · Palette generator →

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