#AF5BC0#AF5BC0

#AF5BC0 is a mid, vivid purple. Relative luminance 0.204; OKLCH L 60.9% C 0.169 H 320.7°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#AF5BC0
RGBrgb(175, 91, 192)
HSLhsl(290, 44%, 55%)
HSVhsv(290, 53%, 75%)
CMYKcmyk(8.9%, 52.6%, 0%, 24.7%)
CIE-LABlab(52.29, 49.57, -38.76)
CIE-LCHlch(52.29, 62.93, 321.98°)
OKLaboklab(60.94% 0.1311 -0.1074)
OKLCHoklch(60.94% 0.169 320.7)
XYZxyz(30.9336, 20.4032, 52.1677)
Luminance0.2040 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BC0 #6CC05B
analogous
#7C5BC0 #AF5BC0 #C05B9E
triadic
#AF5BC0 #C0AF5B #5BC0AF
tetradic
#AF5BC0 #C07C5B #6CC05B #5B9EC0
square
#AF5BC0 #C07C5B #6CC05B #5B9EC0
split-complementary
#AF5BC0 #9EC05B #5BC07C
monochromatic
#682D74 #903EA0 #AF5BC0 #C587D1 #DAB3E2

Accessibility & contrast

On white

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

On black

5.08
#AF5BC0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BC0
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BC0#FFFFFF#000000##000000
##AF5BC01.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4977C3
Deuteranopia (green-blind)
#6480BD
Tritanopia (blue-blind)
#B06985
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af5bc0;
/* rgb */ color: rgb(175, 91, 192);
/* oklch */ color: oklch(60.9% 0.169 320.7);
Tailwind
colors: {
  custom: {
    50: '#c98dd3',
    500: '#af5bc0',
    950: '#000000',
  },
}
SCSS
$custom: #af5bc0;
$custom-light: #c98dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#af5bc0",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 192
  },
  "hsl": {
    "h": 289.901,
    "s": 44.493,
    "l": 55.49
  },
  "oklch": {
    "l": 0.60943,
    "c": 0.16947,
    "h": 320.7
  },
  "luminance": 0.20402
}

Semantic roles & 50–950 ramp

primary
#AF5BC0
secondary
#ADD0A6
accent
#D45469
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#130C14
muted
#827D83

Preview Lab

Preview with #AF5BC0

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

Preview Lab → · Contrast checker → · Palette generator →

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