#AF5ABC#AF5ABC

#AF5ABC is a mid, vivid purple. Relative luminance 0.201; OKLCH L 60.6% C 0.167 H 322.2°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#AF5ABC
RGBrgb(175, 90, 188)
HSLhsl(292, 42%, 55%)
HSVhsv(292, 52%, 74%)
CMYKcmyk(6.9%, 52.1%, 0%, 26.3%)
CIE-LABlab(51.90, 49.30, -37.06)
CIE-LCHlch(51.90, 61.67, 323.07°)
OKLaboklab(60.59% 0.132 -0.1025)
OKLCHoklch(60.59% 0.167 322.2)
XYZxyz(30.4115, 20.0585, 49.8370)
Luminance0.2006 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5ABC #67BC5A
analogous
#7E5ABC #AF5ABC #BC5A98
triadic
#AF5ABC #BCAF5A #5ABCAF
tetradic
#AF5ABC #BC7E5A #67BC5A #5A98BC
square
#AF5ABC #BC7E5A #67BC5A #5A98BC
split-complementary
#AF5ABC #98BC5A #5ABC7E
monochromatic
#662D6F #8E3F9A #AF5ABC #C486CE #D9B1DF

Accessibility & contrast

On white

4.19
#AF5ABC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#AF5ABC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5ABC
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5ABC#FFFFFF#000000##000000
##AF5ABC1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B75BF
Deuteranopia (green-blind)
#657FB9
Tritanopia (blue-blind)
#B16783
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af5abc;
/* rgb */ color: rgb(175, 90, 188);
/* oklch */ color: oklch(60.6% 0.167 322.2);
Tailwind
colors: {
  custom: {
    50: '#c98cd0',
    500: '#af5abc',
    950: '#000000',
  },
}
SCSS
$custom: #af5abc;
$custom-light: #c98cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#af5abc",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 188
  },
  "hsl": {
    "h": 292.041,
    "s": 42.241,
    "l": 54.51
  },
  "oklch": {
    "l": 0.60594,
    "c": 0.16711,
    "h": 322.2
  },
  "luminance": 0.20057
}

Semantic roles & 50–950 ramp

primary
#AF5ABC
secondary
#AACEA4
accent
#D25666
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AF5ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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