#AF5AAA#AF5AAA

#AF5AAA is a mid, vivid purple. Relative luminance 0.193; OKLCH L 59.7% C 0.150 H 329.5°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AF5AAA
RGBrgb(175, 90, 170)
HSLhsl(304, 35%, 52%)
HSVhsv(304, 49%, 69%)
CMYKcmyk(0%, 48.6%, 2.9%, 31.4%)
CIE-LABlab(51.07, 45.92, -27.89)
CIE-LCHlch(51.07, 53.72, 328.72°)
OKLaboklab(59.71% 0.1292 -0.0762)
OKLCHoklch(59.71% 0.15 329.5)
XYZxyz(28.5907, 19.3302, 40.2476)
Luminance0.1933 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5AAA #5AAF5F
analogous
#895AAF #AF5AAA #AF5A80
triadic
#AF5AAA #AAAF5A #5AAAAF
tetradic
#AF5AAA #AF895A #5AAF5F #5A80AF
square
#AF5AAA #AF895A #5AAF5F #5A80AF
split-complementary
#AF5AAA #80AF5A #5AAF89
monochromatic
#602F5D #894385 #AF5AAA #C383BF #D7ACD4

Accessibility & contrast

On white

4.32
#AF5AAA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#AF5AAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5AAA
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5AAA#FFFFFF#000000##000000
##AF5AAA1.004.324.874.87
#FFFFFF4.321.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5572AD
Deuteranopia (green-blind)
#6D7EA7
Tritanopia (blue-blind)
#B4627A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af5aaa;
/* rgb */ color: rgb(175, 90, 170);
/* oklch */ color: oklch(59.7% 0.150 329.5);
Tailwind
colors: {
  custom: {
    50: '#c98cc3',
    500: '#af5aaa',
    950: '#000000',
  },
}
SCSS
$custom: #af5aaa;
$custom-light: #c98cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#af5aaa",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 170
  },
  "hsl": {
    "h": 303.529,
    "s": 34.694,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59707,
    "c": 0.14999,
    "h": 329.5
  },
  "luminance": 0.19329
}

Semantic roles & 50–950 ramp

primary
#AF5AAA
secondary
#A0C5A2
accent
#CB635D
background
#FCF8FC
surface
#F8F0F8
border
#D1CBD1
text
#130C12
muted
#827D81

Preview Lab

Preview with #AF5AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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