#AF5FA5#AF5FA5

#AF5FA5 is a mid, vivid purple. Relative luminance 0.200; OKLCH L 60.2% C 0.137 H 331.9°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#AF5FA5
RGBrgb(175, 95, 165)
HSLhsl(308, 33%, 53%)
HSVhsv(308, 46%, 69%)
CMYKcmyk(0%, 45.7%, 5.7%, 31.4%)
CIE-LABlab(51.86, 42.42, -23.76)
CIE-LCHlch(51.86, 48.62, 330.75°)
OKLaboklab(60.22% 0.1208 -0.0645)
OKLCHoklch(60.22% 0.137 331.9)
XYZxyz(28.5627, 20.0166, 37.9491)
Luminance0.2001 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FA5 #5FAF69
analogous
#915FAF #AF5FA5 #AF5F7D
triadic
#AF5FA5 #A5AF5F #5FA5AF
tetradic
#AF5FA5 #AF915F #5FAF69 #5F7DAF
square
#AF5FA5 #AF915F #5FAF69 #5F7DAF
split-complementary
#AF5FA5 #7DAF5F #5FAF91
monochromatic
#62315C #8B4682 #AF5FA5 #C388BC #D8B1D3

Accessibility & contrast

On white

4.20
#AF5FA5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#AF5FA5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FA5
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FA5#FFFFFF#000000##000000
##AF5FA51.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D75A7
Deuteranopia (green-blind)
#7380A3
Tritanopia (blue-blind)
#B5647A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af5fa5;
/* rgb */ color: rgb(175, 95, 165);
/* oklch */ color: oklch(60.2% 0.137 331.9);
Tailwind
colors: {
  custom: {
    50: '#c88fc0',
    500: '#af5fa5',
    950: '#000000',
  },
}
SCSS
$custom: #af5fa5;
$custom-light: #c88fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fa5",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 165
  },
  "hsl": {
    "h": 307.5,
    "s": 33.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.60221,
    "c": 0.13689,
    "h": 331.9
  },
  "luminance": 0.20015
}

Semantic roles & 50–950 ramp

primary
#AF5FA5
secondary
#A4C6A8
accent
#C96C5E
background
#FCF8FB
surface
#F8F0F7
border
#D1CBD0
text
#130C12
muted
#827D81

Preview Lab

Preview with #AF5FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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