#FFF2C8#FFF2C8

#FFF2C8 is a very light, muted yellow. Relative luminance 0.889; OKLCH L 96.1% C 0.056 H 92.9°. Best body text is #000000 at 18.79:1 contrast (WCAG AA passes).

Color values

HEX#FFF2C8
RGBrgb(255, 242, 200)
HSLhsl(46, 100%, 89%)
HSVhsv(46, 22%, 100%)
CMYKcmyk(0%, 5.1%, 21.6%, 0%)
CIE-LABlab(95.55, -2.12, 21.88)
CIE-LCHlch(95.55, 21.98, 95.54°)
OKLaboklab(96.1% -0.0028 0.056)
OKLCHoklch(96.1% 0.056 92.9)
XYZxyz(83.4174, 88.9360, 67.4044)
Luminance0.8893 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF2C8 #C8D5FF
analogous
#FFD7C8 #FFF2C8 #F1FFC8
triadic
#FFF2C8 #C8FFF2 #F2C8FF
tetradic
#FFF2C8 #C8FFD7 #C8D5FF #FFC8F1
square
#FFF2C8 #C8FFD7 #C8D5FF #FFC8F1
split-complementary
#FFF2C8 #C8F1FF #D7C8FF
monochromatic
#FFD54E #FFE48B #FFF2C8 #FFF8E0 #FFF8E0

Accessibility & contrast

On white

1.12
#FFF2C8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.79
#FFF2C8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF2C8
18.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF2C8#FFFFFF#000000##000000
##FFF2C81.001.1218.7918.79
#FFFFFF1.121.0021.0021.00
#00000018.7921.001.001.00
##00000018.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FBF0C5
Deuteranopia (green-blind)
#FFF4C9
Tritanopia (blue-blind)
#FFEBE6
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #fff2c8;
/* rgb */ color: rgb(255, 242, 200);
/* oklch */ color: oklch(96.1% 0.056 92.9);
Tailwind
colors: {
  custom: {
    50: '#fff6d8',
    500: '#fff2c8',
    950: '#000000',
  },
}
SCSS
$custom: #fff2c8;
$custom-light: #fff6d8;
$custom-dark: #000000;
JSON
{
  "hex": "#fff2c8",
  "rgb": {
    "r": 255,
    "g": 242,
    "b": 200
  },
  "hsl": {
    "h": 45.818,
    "s": 100,
    "l": 89.216
  },
  "oklch": {
    "l": 0.96096,
    "c": 0.05608,
    "h": 92.9
  },
  "luminance": 0.88934
}

Semantic roles & 50–950 ramp

primary
#FFF2C8
secondary
#829BE9
accent
#36E600
background
#FFFFFE
surface
#FFFEFB
border
#D7D6D4
text
#181714
muted
#868583

Preview Lab

Preview with #FFF2C8

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

Preview Lab → · Contrast checker → · Palette generator →

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