#FFF2BA#FFF2BA

#FFF2BA is a very light, moderate yellow. Relative luminance 0.883; OKLCH L 95.8% C 0.073 H 96.6°. Best body text is #000000 at 18.66:1 contrast (WCAG AA passes).

Color values

HEX#FFF2BA
RGBrgb(255, 242, 186)
HSLhsl(49, 100%, 86%)
HSVhsv(49, 27%, 100%)
CMYKcmyk(0%, 5.1%, 27.1%, 0%)
CIE-LABlab(95.29, -4.00, 28.67)
CIE-LCHlch(95.29, 28.94, 97.94°)
OKLaboklab(95.8% -0.0083 0.0724)
OKLCHoklch(95.8% 0.073 96.6)
XYZxyz(81.8555, 88.3113, 59.1786)
Luminance0.8831 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF2BA #BAC7FF
analogous
#FFD0BA #FFF2BA #EAFFBA
triadic
#FFF2BA #BAFFF2 #F2BAFF
tetradic
#FFF2BA #BAFFD0 #BAC7FF #FFBAEA
square
#FFF2BA #BAFFD0 #BAC7FF #FFBAEA
split-complementary
#FFF2BA #BAEAFF #D0BAFF
monochromatic
#FFDB40 #FFE67D #FFF2BA #FFF9E0 #FFF9E0

Accessibility & contrast

On white

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

On black

18.66
#FFF2BA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF2BA
18.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF2BA#FFFFFF#000000##000000
##FFF2BA1.001.1318.6618.66
#FFFFFF1.131.0021.0021.00
#00000018.6621.001.001.00
##00000018.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDEFB6
Deuteranopia (green-blind)
#FFF4BC
Tritanopia (blue-blind)
#FFEAE3
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fff2ba;
/* rgb */ color: rgb(255, 242, 186);
/* oklch */ color: oklch(95.8% 0.073 96.6);
Tailwind
colors: {
  custom: {
    50: '#fff6cf',
    500: '#fff2ba',
    950: '#000000',
  },
}
SCSS
$custom: #fff2ba;
$custom-light: #fff6cf;
$custom-dark: #000000;
JSON
{
  "hex": "#fff2ba",
  "rgb": {
    "r": 255,
    "g": 242,
    "b": 186
  },
  "hsl": {
    "h": 48.696,
    "s": 100,
    "l": 86.471
  },
  "oklch": {
    "l": 0.95804,
    "c": 0.0729,
    "h": 96.6
  },
  "luminance": 0.88309
}

Semantic roles & 50–950 ramp

primary
#FFF2BA
secondary
#768CE7
accent
#2BE600
background
#FFFFFE
surface
#FFFEFB
border
#D7D6D4
text
#181713
muted
#868583

Preview Lab

Preview with #FFF2BA

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

Preview Lab → · Contrast checker → · Palette generator →

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