#AF5FA4#AF5FA4

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

Color values

HEX#AF5FA4
RGBrgb(175, 95, 164)
HSLhsl(308, 33%, 53%)
HSVhsv(308, 46%, 69%)
CMYKcmyk(0%, 45.7%, 6.3%, 31.4%)
CIE-LABlab(51.81, 42.25, -23.23)
CIE-LCHlch(51.81, 48.21, 331.19°)
OKLaboklab(60.18% 0.1205 -0.063)
OKLCHoklch(60.18% 0.136 332.4)
XYZxyz(28.4721, 19.9804, 37.4717)
Luminance0.1998 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FA4 #5FAF6A
analogous
#925FAF #AF5FA4 #AF5F7C
triadic
#AF5FA4 #A4AF5F #5FA4AF
tetradic
#AF5FA4 #AF925F #5FAF6A #5F7CAF
square
#AF5FA4 #AF925F #5FAF6A #5F7CAF
split-complementary
#AF5FA4 #7CAF5F #5FAF92
monochromatic
#62315C #8B4682 #AF5FA4 #C388BB #D8B1D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF5FA4#FFFFFF#000000##000000
##AF5FA41.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)
#5D74A6
Deuteranopia (green-blind)
#7380A2
Tritanopia (blue-blind)
#B5647A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af5fa4;
/* rgb */ color: rgb(175, 95, 164);
/* oklch */ color: oklch(60.2% 0.136 332.4);
Tailwind
colors: {
  custom: {
    50: '#c88fbf',
    500: '#af5fa4',
    950: '#000000',
  },
}
SCSS
$custom: #af5fa4;
$custom-light: #c88fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fa4",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 164
  },
  "hsl": {
    "h": 308.25,
    "s": 33.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.60177,
    "c": 0.136,
    "h": 332.4
  },
  "luminance": 0.19979
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF5FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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