#AF5BCA#AF5BCA

#AF5BCA is a mid, vivid purple. Relative luminance 0.209; OKLCH L 61.5% C 0.180 H 317.3°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#AF5BCA
RGBrgb(175, 91, 202)
HSLhsl(285, 51%, 57%)
HSVhsv(285, 55%, 79%)
CMYKcmyk(13.4%, 55%, 0%, 20.8%)
CIE-LABlab(52.80, 51.58, -43.70)
CIE-LCHlch(52.80, 67.60, 319.73°)
OKLaboklab(61.48% 0.132 -0.1217)
OKLCHoklch(61.48% 0.18 317.3)
XYZxyz(32.0794, 20.8615, 58.2025)
Luminance0.2086 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BCA #76CA5B
analogous
#775BCA #AF5BCA #CA5BAE
triadic
#AF5BCA #CAAF5B #5BCAAF
tetradic
#AF5BCA #CA775B #76CA5B #5BAECA
square
#AF5BCA #CA775B #76CA5B #5BAECA
split-complementary
#AF5BCA #AECA5B #5BCA77
monochromatic
#6C2A81 #9239AF #AF5BCA #C689D9 #DCB8E8

Accessibility & contrast

On white

4.06
#AF5BCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#AF5BCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BCA
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BCA#FFFFFF#000000##000000
##AF5BCA1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4279CE
Deuteranopia (green-blind)
#5E81C7
Tritanopia (blue-blind)
#AE6C8A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af5bca;
/* rgb */ color: rgb(175, 91, 202);
/* oklch */ color: oklch(61.5% 0.180 317.3);
Tailwind
colors: {
  custom: {
    50: '#c98dda',
    500: '#af5bca',
    950: '#000000',
  },
}
SCSS
$custom: #af5bca;
$custom-light: #c98dda;
$custom-dark: #000000;
JSON
{
  "hex": "#af5bca",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 202
  },
  "hsl": {
    "h": 285.405,
    "s": 51.152,
    "l": 57.451
  },
  "oklch": {
    "l": 0.61482,
    "c": 0.17959,
    "h": 317.3
  },
  "luminance": 0.2086
}

Semantic roles & 50–950 ramp

primary
#AF5BCA
secondary
#B5D7AA
accent
#DB4D70
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AF5BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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