#AF2FB2#AF2FB2

#AF2FB2 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.2% C 0.217 H 327.0°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#AF2FB2
RGBrgb(175, 47, 178)
HSLhsl(299, 58%, 44%)
HSVhsv(299, 74%, 70%)
CMYKcmyk(1.7%, 73.6%, 0%, 30.2%)
CIE-LABlab(44.75, 65.74, -42.53)
CIE-LCHlch(44.75, 78.30, 327.10°)
OKLaboklab(55.23% 0.182 -0.1181)
OKLCHoklch(55.23% 0.217 327)
XYZxyz(26.7312, 14.3632, 43.4753)
Luminance0.1436 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2FB2 #32B22F
analogous
#6E2FB2 #AF2FB2 #B22F74
triadic
#AF2FB2 #B2AF2F #2FB2AF
tetradic
#AF2FB2 #B26E2F #32B22F #2F74B2
square
#AF2FB2 #B26E2F #32B22F #2F74B2
split-complementary
#AF2FB2 #74B22F #2FB26E
monochromatic
#501551 #7F2282 #AF2FB2 #CD4ED0 #DB7EDD

Accessibility & contrast

On white

5.42
#AF2FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#AF2FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2FB2
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2FB2#FFFFFF#000000##FFFFFF
##AF2FB21.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5FB6
Deuteranopia (green-blind)
#506FAF
Tritanopia (blue-blind)
#B4446E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af2fb2;
/* rgb */ color: rgb(175, 47, 178);
/* oklch */ color: oklch(55.2% 0.217 327.0);
Tailwind
colors: {
  custom: {
    50: '#cb75c9',
    500: '#af2fb2',
    950: '#000000',
  },
}
SCSS
$custom: #af2fb2;
$custom-light: #cb75c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af2fb2",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 298.626,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55229,
    "c": 0.21694,
    "h": 327
  },
  "luminance": 0.14361
}

Semantic roles & 50–950 ramp

primary
#AF2FB2
secondary
#79C677
accent
#E1464A
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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