#AF5ABB#AF5ABB

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

Color values

HEX#AF5ABB
RGBrgb(175, 90, 187)
HSLhsl(293, 42%, 54%)
HSVhsv(293, 52%, 73%)
CMYKcmyk(6.4%, 51.9%, 0%, 26.7%)
CIE-LABlab(51.85, 49.10, -36.56)
CIE-LCHlch(51.85, 61.22, 323.33°)
OKLaboklab(60.54% 0.1319 -0.101)
OKLCHoklch(60.54% 0.166 322.5)
XYZxyz(30.3041, 20.0155, 49.2712)
Luminance0.2001 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5ABB #66BB5A
analogous
#7F5ABB #AF5ABB #BB5A97
triadic
#AF5ABB #BBAF5A #5ABBAF
tetradic
#AF5ABB #BB7F5A #66BB5A #5A97BB
square
#AF5ABB #BB7F5A #66BB5A #5A97BB
split-complementary
#AF5ABB #97BB5A #5ABB7F
monochromatic
#662D6D #8E3F99 #AF5ABB #C485CD #D9B1DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF5ABB#FFFFFF#000000##000000
##AF5ABB1.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)
#4B75BE
Deuteranopia (green-blind)
#667FB8
Tritanopia (blue-blind)
#B16782
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af5abb;
/* rgb */ color: rgb(175, 90, 187);
/* oklch */ color: oklch(60.5% 0.166 322.5);
Tailwind
colors: {
  custom: {
    50: '#c98cd0',
    500: '#af5abb',
    950: '#000000',
  },
}
SCSS
$custom: #af5abb;
$custom-light: #c98cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#af5abb",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 187
  },
  "hsl": {
    "h": 292.577,
    "s": 41.631,
    "l": 54.314
  },
  "oklch": {
    "l": 0.60543,
    "c": 0.16613,
    "h": 322.5
  },
  "luminance": 0.20014
}

Semantic roles & 50–950 ramp

primary
#AF5ABB
secondary
#A9CDA4
accent
#D15666
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AF5ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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