#AF3AA8#AF3AA8

#AF3AA8 is a mid, vivid purple. Relative luminance 0.150; OKLCH L 55.7% C 0.196 H 330.3°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#AF3AA8
RGBrgb(175, 58, 168)
HSLhsl(304, 50%, 46%)
HSVhsv(304, 67%, 69%)
CMYKcmyk(0%, 66.9%, 4%, 31.4%)
CIE-LABlab(45.59, 60.17, -35.29)
CIE-LCHlch(45.59, 69.75, 329.61°)
OKLaboklab(55.66% 0.1706 -0.0971)
OKLCHoklch(55.66% 0.196 330.3)
XYZxyz(26.2600, 14.9692, 38.5444)
Luminance0.1497 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3AA8 #3AAF41
analogous
#7B3AAF #AF3AA8 #AF3A6D
triadic
#AF3AA8 #A8AF3A #3AA8AF
tetradic
#AF3AA8 #AF7B3A #3AAF41 #3A6DAF
square
#AF3AA8 #AF7B3A #3AAF41 #3A6DAF
split-complementary
#AF3AA8 #6DAF3A #3AAF7B
monochromatic
#531C50 #812B7C #AF3AA8 #C95DC3 #D98BD4

Accessibility & contrast

On white

5.26
#AF3AA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#AF3AA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3AA8
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3AA8#FFFFFF#000000##FFFFFF
##AF3AA81.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3062AB
Deuteranopia (green-blind)
#5B72A5
Tritanopia (blue-blind)
#B6476C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af3aa8;
/* rgb */ color: rgb(175, 58, 168);
/* oklch */ color: oklch(55.7% 0.196 330.3);
Tailwind
colors: {
  custom: {
    50: '#ca7ac2',
    500: '#af3aa8',
    950: '#000000',
  },
}
SCSS
$custom: #af3aa8;
$custom-light: #ca7ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#af3aa8",
  "rgb": {
    "r": 175,
    "g": 58,
    "b": 168
  },
  "hsl": {
    "h": 303.59,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55661,
    "c": 0.19635,
    "h": 330.3
  },
  "luminance": 0.14967
}

Semantic roles & 50–950 ramp

primary
#AF3AA8
secondary
#82C386
accent
#DA564E
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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