#AF2FAA#AF2FAA

#AF2FAA is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.8% C 0.211 H 329.7°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#AF2FAA
RGBrgb(175, 47, 170)
HSLhsl(302, 58%, 44%)
HSVhsv(302, 73%, 69%)
CMYKcmyk(0%, 73.1%, 2.9%, 31.4%)
CIE-LABlab(44.31, 64.43, -38.50)
CIE-LCHlch(44.31, 75.06, 329.14°)
OKLaboklab(54.77% 0.182 -0.1064)
OKLCHoklch(54.77% 0.211 329.7)
XYZxyz(25.9512, 14.0513, 39.3678)
Luminance0.1405 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2FAA #2FAF34
analogous
#742FAF #AF2FAA #AF2F6A
triadic
#AF2FAA #AAAF2F #2FAAAF
tetradic
#AF2FAA #AF742F #2FAF34 #2F6AAF
square
#AF2FAA #AF742F #2FAF34 #2F6AAF
split-complementary
#AF2FAA #6AAF2F #2FAF74
monochromatic
#4F154C #7F227B #AF2FAA #CF4CCA #DC7CD8

Accessibility & contrast

On white

5.51
#AF2FAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#AF2FAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2FAA
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2FAA#FFFFFF#000000##FFFFFF
##AF2FAA1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5EAD
Deuteranopia (green-blind)
#556FA7
Tritanopia (blue-blind)
#B5416A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af2faa;
/* rgb */ color: rgb(175, 47, 170);
/* oklch */ color: oklch(54.8% 0.211 329.7);
Tailwind
colors: {
  custom: {
    50: '#cb75c4',
    500: '#af2faa',
    950: '#000000',
  },
}
SCSS
$custom: #af2faa;
$custom-light: #cb75c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af2faa",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 302.344,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54769,
    "c": 0.2108,
    "h": 329.7
  },
  "luminance": 0.14049
}

Semantic roles & 50–950 ramp

primary
#AF2FAA
secondary
#75C478
accent
#E14D47
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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