#AF5FA3#AF5FA3

#AF5FA3 is a mid, vivid purple. Relative luminance 0.199; OKLCH L 60.1% C 0.135 H 332.9°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#AF5FA3
RGBrgb(175, 95, 163)
HSLhsl(309, 33%, 53%)
HSVhsv(309, 46%, 69%)
CMYKcmyk(0%, 45.7%, 6.9%, 31.4%)
CIE-LABlab(51.77, 42.07, -22.71)
CIE-LCHlch(51.77, 47.81, 331.64°)
OKLaboklab(60.13% 0.1203 -0.0615)
OKLCHoklch(60.13% 0.135 332.9)
XYZxyz(28.3821, 19.9444, 36.9979)
Luminance0.1994 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FA3 #5FAF6B
analogous
#935FAF #AF5FA3 #AF5F7B
triadic
#AF5FA3 #A3AF5F #5FA3AF
tetradic
#AF5FA3 #AF935F #5FAF6B #5F7BAF
square
#AF5FA3 #AF935F #5FAF6B #5F7BAF
split-complementary
#AF5FA3 #7BAF5F #5FAF93
monochromatic
#62315B #8B4681 #AF5FA3 #C388BA #D8B1D2

Accessibility & contrast

On white

4.21
#AF5FA3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#AF5FA3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FA3
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FA3#FFFFFF#000000##000000
##AF5FA31.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E74A5
Deuteranopia (green-blind)
#7380A1
Tritanopia (blue-blind)
#B56479
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af5fa3;
/* rgb */ color: rgb(175, 95, 163);
/* oklch */ color: oklch(60.1% 0.135 332.9);
Tailwind
colors: {
  custom: {
    50: '#c88fbe',
    500: '#af5fa3',
    950: '#000000',
  },
}
SCSS
$custom: #af5fa3;
$custom-light: #c88fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fa3",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 163
  },
  "hsl": {
    "h": 309,
    "s": 33.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.60134,
    "c": 0.13512,
    "h": 332.9
  },
  "luminance": 0.19943
}

Semantic roles & 50–950 ramp

primary
#AF5FA3
secondary
#A4C6A9
accent
#C96E5E
background
#FCF8FB
surface
#F8F0F6
border
#D1CBD0
text
#130C12
muted
#827D81

Preview Lab

Preview with #AF5FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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