#AF5BC1#AF5BC1

#AF5BC1 is a mid, vivid purple. Relative luminance 0.204; OKLCH L 61.0% C 0.170 H 320.3°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#AF5BC1
RGBrgb(175, 91, 193)
HSLhsl(289, 45%, 56%)
HSVhsv(289, 53%, 76%)
CMYKcmyk(9.3%, 52.8%, 0%, 24.3%)
CIE-LABlab(52.34, 49.77, -39.25)
CIE-LCHlch(52.34, 63.39, 321.74°)
OKLaboklab(61% 0.1312 -0.1089)
OKLCHoklch(61% 0.17 320.3)
XYZxyz(31.0448, 20.4477, 52.7532)
Luminance0.2045 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BC1 #6DC15B
analogous
#7C5BC1 #AF5BC1 #C15BA0
triadic
#AF5BC1 #C1AF5B #5BC1AF
tetradic
#AF5BC1 #C17C5B #6DC15B #5BA0C1
square
#AF5BC1 #C17C5B #6DC15B #5BA0C1
split-complementary
#AF5BC1 #A0C15B #5BC17C
monochromatic
#682C75 #903DA2 #AF5BC1 #C587D2 #DAB4E3

Accessibility & contrast

On white

4.13
#AF5BC1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#AF5BC1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BC1
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BC1#FFFFFF#000000##000000
##AF5BC11.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4977C4
Deuteranopia (green-blind)
#6380BE
Tritanopia (blue-blind)
#B06985
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af5bc1;
/* rgb */ color: rgb(175, 91, 193);
/* oklch */ color: oklch(61.0% 0.170 320.3);
Tailwind
colors: {
  custom: {
    50: '#c98dd4',
    500: '#af5bc1',
    950: '#000000',
  },
}
SCSS
$custom: #af5bc1;
$custom-light: #c98dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#af5bc1",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 193
  },
  "hsl": {
    "h": 289.412,
    "s": 45.133,
    "l": 55.686
  },
  "oklch": {
    "l": 0.60996,
    "c": 0.17047,
    "h": 320.3
  },
  "luminance": 0.20446
}

Semantic roles & 50–950 ramp

primary
#AF5BC1
secondary
#AED1A7
accent
#D5536A
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#130C14
muted
#827D83

Preview Lab

Preview with #AF5BC1

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

Preview Lab → · Contrast checker → · Palette generator →

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