#F2AFFE

A color in the Purple, Crimson, Magenta family

#f2affe is a color in the Purple, Crimson, Magenta family: RGB(242, 175, 254), HSL(291°, 98%, 84%), CMYK(5%, 31%, 0%, 0%). Closest named color: plum. Contrast is 1.7:1 on white and 12.34:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#f2affe
RGBrgb(242 175 254)
RGB (legacy)rgb(242, 175, 254)
RGB %rgb(95% 69% 100%)
HSLhsl(291 98% 84%)
HSV / HSBhsv(291, 31%, 100%)
HWBhwb(291 69% 0%)
CMYKcmyk(5%, 31%, 0%, 0%)
CIELAB (D50)lab(79.9 34.76 -29.41)
LCHlch(79.9 45.53 319.77)
OKLaboklab(0.8425 0.1003 -0.0804)
OKLCHoklch(0.8425 0.1286 321.28)
Decimal15904766

Properties

Color TonePurple, Crimson, Magenta
Closest named colorplum ΔE 6.4
Closest web-safe color#ff99ff
Hue291°
Saturation (HSL / HSV)98% / 31%
Lightness (HSL)84%
Brightness or Value (HSV)100%
Luminance (Rec.601 / Rec.709)80% / 76%
Relative luminance (WCAG)0.5669
Red / Green / Blue242 / 175 / 254

WCAG 2.2 Contrast Ratio

On White (#ffffff)
1.70:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
12.34:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 30.3 / -72.5 · As background with white / black text: Lc -34.1 / 73.5

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #f2affe;
  --color-brand-oklch: oklch(84.25% 0.1286 321.28);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(242 175 254 / 50%); }
/* Tailwind CSS */
<div class="bg-[#f2affe] text-[#f2affe] border-[#f2affe]">