#FFF2AF#FFF2AF

#FFF2AF is a very light, moderate yellow. Relative luminance 0.879; OKLCH L 95.6% C 0.086 H 98.5°. Best body text is #000000 at 18.57:1 contrast (WCAG AA passes).

Color values

HEX#FFF2AF
RGBrgb(255, 242, 175)
HSLhsl(50, 100%, 84%)
HSVhsv(50, 31%, 100%)
CMYKcmyk(0%, 5.1%, 31.4%, 0%)
CIE-LABlab(95.10, -5.37, 33.98)
CIE-LCHlch(95.10, 34.40, 98.98°)
OKLaboklab(95.59% -0.0126 0.0849)
OKLCHoklch(95.59% 0.086 98.5)
XYZxyz(80.7308, 87.8614, 53.2554)
Luminance0.8786 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF2AF #AFBCFF
analogous
#FFCAAF #FFF2AF #E4FFAF
triadic
#FFF2AF #AFFFF2 #F2AFFF
tetradic
#FFF2AF #AFFFCA #AFBCFF #FFAFE4
square
#FFF2AF #AFFFCA #AFBCFF #FFAFE4
split-complementary
#FFF2AF #AFE4FF #CAAFFF
monochromatic
#FFDE35 #FFE872 #FFF2AF #FFFAE0 #FFFAE0

Accessibility & contrast

On white

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

On black

18.57
#FFF2AF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF2AF
18.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF2AF#FFFFFF#000000##000000
##FFF2AF1.001.1318.5718.57
#FFFFFF1.131.0021.0021.00
#00000018.5721.001.001.00
##00000018.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEEAA
Deuteranopia (green-blind)
#FFF3B1
Tritanopia (blue-blind)
#FFE9E0
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fff2af;
/* rgb */ color: rgb(255, 242, 175);
/* oklch */ color: oklch(95.6% 0.086 98.5);
Tailwind
colors: {
  custom: {
    50: '#fff6c7',
    500: '#fff2af',
    950: '#000000',
  },
}
SCSS
$custom: #fff2af;
$custom-light: #fff6c7;
$custom-dark: #000000;
JSON
{
  "hex": "#fff2af",
  "rgb": {
    "r": 255,
    "g": 242,
    "b": 175
  },
  "hsl": {
    "h": 50.25,
    "s": 100,
    "l": 84.314
  },
  "oklch": {
    "l": 0.95592,
    "c": 0.08584,
    "h": 98.5
  },
  "luminance": 0.87859
}

Semantic roles & 50–950 ramp

primary
#FFF2AF
secondary
#6D81E5
accent
#25E600
background
#FFFFFD
surface
#FFFEF9
border
#D7D6D2
text
#181713
muted
#868582

Preview Lab

Preview with #FFF2AF

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

Preview Lab → · Contrast checker → · Palette generator →

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