#FFF2AB#FFF2AB

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

Color values

HEX#FFF2AB
RGBrgb(255, 242, 171)
HSLhsl(51, 100%, 84%)
HSVhsv(51, 33%, 100%)
CMYKcmyk(0%, 5.1%, 32.9%, 0%)
CIE-LABlab(95.04, -5.85, 35.90)
CIE-LCHlch(95.04, 36.37, 99.25°)
OKLaboklab(95.52% -0.0142 0.0893)
OKLCHoklch(95.52% 0.09 99)
XYZxyz(80.3438, 87.7066, 51.2169)
Luminance0.8770 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF2AB #ABB8FF
analogous
#FFC8AB #FFF2AB #E2FFAB
triadic
#FFF2AB #ABFFF2 #F2ABFF
tetradic
#FFF2AB #ABFFC8 #ABB8FF #FFABE2
square
#FFF2AB #ABFFC8 #ABB8FF #FFABE2
split-complementary
#FFF2AB #ABE2FF #C8ABFF
monochromatic
#FFDF31 #FFE96E #FFF2AB #FFFAE0 #FFFAE0

Accessibility & contrast

On white

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

On black

18.54
#FFF2AB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF2AB
18.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF2AB#FFFFFF#000000##000000
##FFF2AB1.001.1318.5418.54
#FFFFFF1.131.0021.0021.00
#00000018.5421.001.001.00
##00000018.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEEA6
Deuteranopia (green-blind)
#FFF3AE
Tritanopia (blue-blind)
#FFE8E0
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fff2ab;
/* rgb */ color: rgb(255, 242, 171);
/* oklch */ color: oklch(95.5% 0.090 99.0);
Tailwind
colors: {
  custom: {
    50: '#fff6c4',
    500: '#fff2ab',
    950: '#000000',
  },
}
SCSS
$custom: #fff2ab;
$custom-light: #fff6c4;
$custom-dark: #000000;
JSON
{
  "hex": "#fff2ab",
  "rgb": {
    "r": 255,
    "g": 242,
    "b": 171
  },
  "hsl": {
    "h": 50.714,
    "s": 100,
    "l": 83.529
  },
  "oklch": {
    "l": 0.95519,
    "c": 0.09046,
    "h": 99
  },
  "luminance": 0.87705
}

Semantic roles & 50–950 ramp

primary
#FFF2AB
secondary
#6A7DE5
accent
#24E600
background
#FFFFFD
surface
#FFFEF9
border
#D7D6D2
text
#181713
muted
#868582

Preview Lab

Preview with #FFF2AB

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

Preview Lab → · Contrast checker → · Palette generator →

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