#AF3AAF#AF3AAF

#AF3AAF is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.0% C 0.202 H 327.9°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#AF3AAF
RGBrgb(175, 58, 175)
HSLhsl(300, 50%, 46%)
HSVhsv(300, 67%, 69%)
CMYKcmyk(0%, 66.9%, 0%, 31.4%)
CIE-LABlab(45.96, 61.34, -38.85)
CIE-LCHlch(45.96, 72.61, 327.65°)
OKLaboklab(56.04% 0.171 -0.1074)
OKLCHoklch(56.04% 0.202 327.9)
XYZxyz(26.9298, 15.2371, 42.0718)
Luminance0.1524 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3AAF #3AAF3A
analogous
#743AAF #AF3AAF #AF3A74
triadic
#AF3AAF #AFAF3A #3AAFAF
tetradic
#AF3AAF #AF743A #3AAF3A #3A74AF
square
#AF3AAF #AF743A #3AAF3A #3A74AF
split-complementary
#AF3AAF #74AF3A #3AAF74
monochromatic
#531C53 #812B81 #AF3AAF #C95DC9 #D98BD9

Accessibility & contrast

On white

5.19
#AF3AAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#AF3AAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3AAF
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3AAF#FFFFFF#000000##FFFFFF
##AF3AAF1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2963B2
Deuteranopia (green-blind)
#5772AC
Tritanopia (blue-blind)
#B44A70
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af3aaf;
/* rgb */ color: rgb(175, 58, 175);
/* oklch */ color: oklch(56.0% 0.202 327.9);
Tailwind
colors: {
  custom: {
    50: '#ca7ac7',
    500: '#af3aaf',
    950: '#000000',
  },
}
SCSS
$custom: #af3aaf;
$custom-light: #ca7ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#af3aaf",
  "rgb": {
    "r": 175,
    "g": 58,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56043,
    "c": 0.20195,
    "h": 327.9
  },
  "luminance": 0.15235
}

Semantic roles & 50–950 ramp

primary
#AF3AAF
secondary
#82C382
accent
#DA4E4E
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF3AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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