#FFF2A2#FFF2A2

#FFF2A2 is a very light, moderate yellow. Relative luminance 0.874; OKLCH L 95.4% C 0.101 H 100.1°. Best body text is #000000 at 18.47:1 contrast (WCAG AA passes).

Color values

HEX#FFF2A2
RGBrgb(255, 242, 162)
HSLhsl(52, 100%, 82%)
HSVhsv(52, 36%, 100%)
CMYKcmyk(0%, 5.1%, 36.5%, 0%)
CIE-LABlab(94.90, -6.88, 40.21)
CIE-LCHlch(94.90, 40.79, 99.70°)
OKLaboklab(95.36% -0.0177 0.0991)
OKLCHoklch(95.36% 0.101 100.1)
XYZxyz(79.5150, 87.3750, 46.8519)
Luminance0.8737 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF2A2 #A2AFFF
analogous
#FFC4A2 #FFF2A2 #DEFFA2
triadic
#FFF2A2 #A2FFF2 #F2A2FF
tetradic
#FFF2A2 #A2FFC4 #A2AFFF #FFA2DE
square
#FFF2A2 #A2FFC4 #A2AFFF #FFA2DE
split-complementary
#FFF2A2 #A2DEFF #C4A2FF
monochromatic
#FFE128 #FFE965 #FFF2A2 #FFFBDF #FFFBE0

Accessibility & contrast

On white

1.14
#FFF2A2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.47
#FFF2A2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF2A2
18.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF2A2#FFFFFF#000000##000000
##FFF2A21.001.1418.4718.47
#FFFFFF1.141.0021.0021.00
#00000018.4721.001.001.00
##00000018.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED9C
Deuteranopia (green-blind)
#FFF3A5
Tritanopia (blue-blind)
#FFE7DE
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #fff2a2;
/* rgb */ color: rgb(255, 242, 162);
/* oklch */ color: oklch(95.4% 0.101 100.1);
Tailwind
colors: {
  custom: {
    50: '#fff6be',
    500: '#fff2a2',
    950: '#000000',
  },
}
SCSS
$custom: #fff2a2;
$custom-light: #fff6be;
$custom-dark: #000000;
JSON
{
  "hex": "#fff2a2",
  "rgb": {
    "r": 255,
    "g": 242,
    "b": 162
  },
  "hsl": {
    "h": 51.613,
    "s": 100,
    "l": 81.765
  },
  "oklch": {
    "l": 0.95362,
    "c": 0.10067,
    "h": 100.1
  },
  "luminance": 0.87373
}

Semantic roles & 50–950 ramp

primary
#FFF2A2
secondary
#6274E3
accent
#20E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181712
muted
#868582

Preview Lab

Preview with #FFF2A2

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

Preview Lab → · Contrast checker → · Palette generator →

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