#AF4AAF#AF4AAF

#AF4AAF is a mid, vivid purple. Relative luminance 0.171; OKLCH L 57.8% C 0.180 H 327.6°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#AF4AAF
RGBrgb(175, 74, 175)
HSLhsl(300, 41%, 49%)
HSVhsv(300, 58%, 69%)
CMYKcmyk(0%, 57.7%, 0%, 31.4%)
CIE-LABlab(48.40, 54.59, -35.00)
CIE-LCHlch(48.40, 64.85, 327.33°)
OKLaboklab(57.81% 0.1519 -0.0964)
OKLCHoklch(57.81% 0.18 327.6)
XYZxyz(27.8654, 17.1084, 42.3837)
Luminance0.1711 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4AAF #4AAF4A
analogous
#7D4AAF #AF4AAF #AF4A7D
triadic
#AF4AAF #AFAF4A #4AAFAF
tetradic
#AF4AAF #AF7D4A #4AAF4A #4A7DAF
square
#AF4AAF #AF7D4A #4AAF4A #4A7DAF
split-complementary
#AF4AAF #7DAF4A #4AAF7D
monochromatic
#592659 #843884 #AF4AAF #C473C4 #D69ED6

Accessibility & contrast

On white

4.75
#AF4AAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#AF4AAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4AAF
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4AAF#FFFFFF#000000##FFFFFF
##AF4AAF1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F6AB2
Deuteranopia (green-blind)
#6178AC
Tritanopia (blue-blind)
#B45676
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af4aaf;
/* rgb */ color: rgb(175, 74, 175);
/* oklch */ color: oklch(57.8% 0.180 327.6);
Tailwind
colors: {
  custom: {
    50: '#ca82c7',
    500: '#af4aaf',
    950: '#000000',
  },
}
SCSS
$custom: #af4aaf;
$custom-light: #ca82c7;
$custom-dark: #000000;
JSON
{
  "hex": "#af4aaf",
  "rgb": {
    "r": 175,
    "g": 74,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 40.562,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57813,
    "c": 0.17995,
    "h": 327.6
  },
  "luminance": 0.17107
}

Semantic roles & 50–950 ramp

primary
#AF4AAF
secondary
#92C292
accent
#D05757
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #AF4AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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