#AF5AA2#AF5AA2

#AF5AA2 is a mid, vivid purple. Relative luminance 0.190; OKLCH L 59.3% C 0.143 H 333.2°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#AF5AA2
RGBrgb(175, 90, 162)
HSLhsl(309, 35%, 52%)
HSVhsv(309, 49%, 69%)
CMYKcmyk(0%, 48.6%, 7.4%, 31.4%)
CIE-LABlab(50.73, 44.50, -23.73)
CIE-LCHlch(50.73, 50.43, 331.93°)
OKLaboklab(59.34% 0.1276 -0.0644)
OKLCHoklch(59.34% 0.143 333.2)
XYZxyz(27.8569, 19.0367, 36.3826)
Luminance0.1903 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5AA2 #5AAF67
analogous
#915AAF #AF5AA2 #AF5A78
triadic
#AF5AA2 #A2AF5A #5AA2AF
tetradic
#AF5AA2 #AF915A #5AAF67 #5A78AF
square
#AF5AA2 #AF915A #5AAF67 #5A78AF
split-complementary
#AF5AA2 #78AF5A #5AAF91
monochromatic
#602F58 #89437E #AF5AA2 #C383B9 #D7ACD0

Accessibility & contrast

On white

4.37
#AF5AA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#AF5AA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5AA2
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5AA2#FFFFFF#000000##000000
##AF5AA21.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5971A4
Deuteranopia (green-blind)
#707DA0
Tritanopia (blue-blind)
#B65F76
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af5aa2;
/* rgb */ color: rgb(175, 90, 162);
/* oklch */ color: oklch(59.3% 0.143 333.2);
Tailwind
colors: {
  custom: {
    50: '#c98cbd',
    500: '#af5aa2',
    950: '#000000',
  },
}
SCSS
$custom: #af5aa2;
$custom-light: #c98cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#af5aa2",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 162
  },
  "hsl": {
    "h": 309.176,
    "s": 34.694,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59342,
    "c": 0.14288,
    "h": 333.2
  },
  "luminance": 0.19035
}

Semantic roles & 50–950 ramp

primary
#AF5AA2
secondary
#A0C5A5
accent
#CB6E5D
background
#FCF8FB
surface
#F8F0F6
border
#D1CBD0
text
#130C12
muted
#827D81

Preview Lab

Preview with #AF5AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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