#AF2FB0#AF2FB0

#AF2FB0 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.1% C 0.215 H 327.7°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#AF2FB0
RGBrgb(175, 47, 176)
HSLhsl(300, 58%, 44%)
HSVhsv(300, 73%, 69%)
CMYKcmyk(0.6%, 73.3%, 0%, 31%)
CIE-LABlab(44.64, 65.41, -41.53)
CIE-LCHlch(44.64, 77.48, 327.59°)
OKLaboklab(55.11% 0.182 -0.1151)
OKLCHoklch(55.11% 0.215 327.7)
XYZxyz(26.5318, 14.2835, 42.4254)
Luminance0.1428 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2FB0 #30B02F
analogous
#6E2FB0 #AF2FB0 #B02F70
triadic
#AF2FB0 #B0AF2F #2FB0AF
tetradic
#AF2FB0 #B06E2F #30B02F #2F70B0
square
#AF2FB0 #B06E2F #30B02F #2F70B0
split-complementary
#AF2FB0 #70B02F #2FB06E
monochromatic
#4F154F #7F2280 #AF2FB0 #CE4DCF #DC7DDC

Accessibility & contrast

On white

5.45
#AF2FB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#AF2FB0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2FB0
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2FB0#FFFFFF#000000##FFFFFF
##AF2FB01.005.453.865.45
#FFFFFF5.451.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125FB4
Deuteranopia (green-blind)
#516FAD
Tritanopia (blue-blind)
#B4436D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af2fb0;
/* rgb */ color: rgb(175, 47, 176);
/* oklch */ color: oklch(55.1% 0.215 327.7);
Tailwind
colors: {
  custom: {
    50: '#cb75c8',
    500: '#af2fb0',
    950: '#000000',
  },
}
SCSS
$custom: #af2fb0;
$custom-light: #cb75c8;
$custom-dark: #000000;
JSON
{
  "hex": "#af2fb0",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 176
  },
  "hsl": {
    "h": 299.535,
    "s": 57.848,
    "l": 43.725
  },
  "oklch": {
    "l": 0.55112,
    "c": 0.21539,
    "h": 327.7
  },
  "luminance": 0.14282
}

Semantic roles & 50–950 ramp

primary
#AF2FB0
secondary
#76C576
accent
#E14748
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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