#FFF7AF#FFF7AF

#FFF7AF is a very light, moderate yellow. Relative luminance 0.909; OKLCH L 96.6% C 0.091 H 102.6°. Best body text is #000000 at 19.18:1 contrast (WCAG AA passes).

Color values

HEX#FFF7AF
RGBrgb(255, 247, 175)
HSLhsl(54, 100%, 84%)
HSVhsv(54, 31%, 100%)
CMYKcmyk(0%, 3.1%, 31.4%, 0%)
CIE-LABlab(96.36, -7.86, 35.65)
CIE-LCHlch(96.36, 36.51, 102.43°)
OKLaboklab(96.59% -0.0198 0.0889)
OKLCHoklch(96.59% 0.091 102.6)
XYZxyz(82.2394, 90.8784, 53.7582)
Luminance0.9088 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF7AF #AFB7FF
analogous
#FFCFAF #FFF7AF #DFFFAF
triadic
#FFF7AF #AFFFF7 #F7AFFF
tetradic
#FFF7AF #AFFFCF #AFB7FF #FFAFDF
square
#FFF7AF #AFFFCF #AFB7FF #FFAFDF
split-complementary
#FFF7AF #AFDFFF #CFAFFF
monochromatic
#FFEB35 #FFF172 #FFF7AF #FFFCE0 #FFFCE0

Accessibility & contrast

On white

1.10
#FFF7AF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.18
#FFF7AF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF7AF
19.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF7AF#FFFFFF#000000##000000
##FFF7AF1.001.1019.1819.18
#FFFFFF1.101.0021.0021.00
#00000019.1821.001.001.00
##00000019.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF2AA
Deuteranopia (green-blind)
#FFF7B2
Tritanopia (blue-blind)
#FFEDE4
Achromatopsia (no color)
#F4F4F4

Design tokens & code

CSS
--color: #fff7af;
/* rgb */ color: rgb(255, 247, 175);
/* oklch */ color: oklch(96.6% 0.091 102.6);
Tailwind
colors: {
  custom: {
    50: '#fff9c7',
    500: '#fff7af',
    950: '#000000',
  },
}
SCSS
$custom: #fff7af;
$custom-light: #fff9c7;
$custom-dark: #000000;
JSON
{
  "hex": "#fff7af",
  "rgb": {
    "r": 255,
    "g": 247,
    "b": 175
  },
  "hsl": {
    "h": 54,
    "s": 100,
    "l": 84.314
  },
  "oklch": {
    "l": 0.96587,
    "c": 0.09104,
    "h": 102.6
  },
  "luminance": 0.90877
}

Semantic roles & 50–950 ramp

primary
#FFF7AF
secondary
#6D79E5
accent
#17E600
background
#FFFFFD
surface
#FFFFF9
border
#D7D7D2
text
#181713
muted
#868582

Preview Lab

Preview with #FFF7AF

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

Preview Lab → · Contrast checker → · Palette generator →

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