#F2FFAF#F2FFAF

#F2FFAF is a very light, moderate yellow. Relative luminance 0.935; OKLCH L 97.2% C 0.102 H 115.8°. Best body text is #000000 at 19.70:1 contrast (WCAG AA passes).

Color values

HEX#F2FFAF
RGBrgb(242, 255, 175)
HSLhsl(70, 100%, 84%)
HSVhsv(70, 31%, 100%)
CMYKcmyk(5.1%, 0%, 31.4%, 0%)
CIE-LABlab(97.43, -16.60, 36.89)
CIE-LCHlch(97.43, 40.45, 114.22°)
OKLaboklab(97.2% -0.0445 0.0918)
OKLCHoklch(97.2% 0.102 115.8)
XYZxyz(80.1158, 93.4930, 54.3745)
Luminance0.9349 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2FFAF #BCAFFF
analogous
#FFE4AF #F2FFAF #CAFFAF
triadic
#F2FFAF #AFF2FF #FFAFF2
tetradic
#F2FFAF #AFFFE4 #BCAFFF #FFAFCA
square
#F2FFAF #AFFFE4 #BCAFFF #FFAFCA
split-complementary
#F2FFAF #AFCAFF #E4AFFF
monochromatic
#DEFF35 #E8FF72 #F2FFAF #FAFFE0 #FAFFE0

Accessibility & contrast

On white

1.07
#F2FFAF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.70
#F2FFAF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2FFAF
19.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2FFAF#FFFFFF#000000##000000
##F2FFAF1.001.0719.7019.70
#FFFFFF1.071.0021.0021.00
#00000019.7021.001.001.00
##00000019.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF7AA
Deuteranopia (green-blind)
#FFF8B2
Tritanopia (blue-blind)
#FBF6EA
Achromatopsia (no color)
#F8F8F8

Design tokens & code

CSS
--color: #f2ffaf;
/* rgb */ color: rgb(242, 255, 175);
/* oklch */ color: oklch(97.2% 0.102 115.8);
Tailwind
colors: {
  custom: {
    50: '#f7ffc7',
    500: '#f2ffaf',
    950: '#000000',
  },
}
SCSS
$custom: #f2ffaf;
$custom-light: #f7ffc7;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ffaf",
  "rgb": {
    "r": 242,
    "g": 255,
    "b": 175
  },
  "hsl": {
    "h": 69.75,
    "s": 100,
    "l": 84.314
  },
  "oklch": {
    "l": 0.97195,
    "c": 0.10203,
    "h": 115.8
  },
  "luminance": 0.93492
}

Semantic roles & 50–950 ramp

primary
#F2FFAF
secondary
#816DE5
accent
#00E625
background
#FFFFFD
surface
#FFFFF9
border
#D7D7D2
text
#171813
muted
#858682

Preview Lab

Preview with #F2FFAF

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

Preview Lab → · Contrast checker → · Palette generator →

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