#AF5ABA#AF5ABA

#AF5ABA is a mid, vivid purple. Relative luminance 0.200; OKLCH L 60.5% C 0.165 H 322.9°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#AF5ABA
RGBrgb(175, 90, 186)
HSLhsl(293, 41%, 54%)
HSVhsv(293, 52%, 73%)
CMYKcmyk(5.9%, 51.6%, 0%, 27.1%)
CIE-LABlab(51.81, 48.91, -36.05)
CIE-LCHlch(51.81, 60.76, 323.60°)
OKLaboklab(60.49% 0.1317 -0.0996)
OKLCHoklch(60.49% 0.165 322.9)
XYZxyz(30.1974, 19.9729, 48.7094)
Luminance0.1997 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5ABA #65BA5A
analogous
#7F5ABA #AF5ABA #BA5A95
triadic
#AF5ABA #BAAF5A #5ABAAF
tetradic
#AF5ABA #BA7F5A #65BA5A #5A95BA
square
#AF5ABA #BA7F5A #65BA5A #5A95BA
split-complementary
#AF5ABA #95BA5A #5ABA7F
monochromatic
#652D6C #8D3F97 #AF5ABA #C485CC #D9B0DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF5ABA#FFFFFF#000000##000000
##AF5ABA1.004.204.994.99
#FFFFFF4.201.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C75BD
Deuteranopia (green-blind)
#667FB7
Tritanopia (blue-blind)
#B26682
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af5aba;
/* rgb */ color: rgb(175, 90, 186);
/* oklch */ color: oklch(60.5% 0.165 322.9);
Tailwind
colors: {
  custom: {
    50: '#c98ccf',
    500: '#af5aba',
    950: '#000000',
  },
}
SCSS
$custom: #af5aba;
$custom-light: #c98ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#af5aba",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 186
  },
  "hsl": {
    "h": 293.125,
    "s": 41.026,
    "l": 54.118
  },
  "oklch": {
    "l": 0.60491,
    "c": 0.16515,
    "h": 322.9
  },
  "luminance": 0.19971
}

Semantic roles & 50–950 ramp

primary
#AF5ABA
secondary
#A8CCA3
accent
#D15765
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AF5ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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