#AF5BC2#AF5BC2

#AF5BC2 is a mid, vivid purple. Relative luminance 0.205; OKLCH L 61.0% C 0.171 H 320.0°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#AF5BC2
RGBrgb(175, 91, 194)
HSLhsl(289, 46%, 56%)
HSVhsv(289, 53%, 76%)
CMYKcmyk(9.8%, 53.1%, 0%, 23.9%)
CIE-LABlab(52.39, 49.97, -39.75)
CIE-LCHlch(52.39, 63.85, 321.50°)
OKLaboklab(61.05% 0.1313 -0.1103)
OKLCHoklch(61.05% 0.171 320)
XYZxyz(31.1567, 20.4924, 53.3427)
Luminance0.2049 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BC2 #6EC25B
analogous
#7B5BC2 #AF5BC2 #C25BA1
triadic
#AF5BC2 #C2AF5B #5BC2AF
tetradic
#AF5BC2 #C27B5B #6EC25B #5BA1C2
square
#AF5BC2 #C27B5B #6EC25B #5BA1C2
split-complementary
#AF5BC2 #A1C25B #5BC27B
monochromatic
#692C77 #903DA3 #AF5BC2 #C588D3 #DBB4E3

Accessibility & contrast

On white

4.12
#AF5BC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#AF5BC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BC2
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BC2#FFFFFF#000000##000000
##AF5BC21.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4877C5
Deuteranopia (green-blind)
#6380BF
Tritanopia (blue-blind)
#B06A86
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af5bc2;
/* rgb */ color: rgb(175, 91, 194);
/* oklch */ color: oklch(61.0% 0.171 320.0);
Tailwind
colors: {
  custom: {
    50: '#c98dd5',
    500: '#af5bc2',
    950: '#000000',
  },
}
SCSS
$custom: #af5bc2;
$custom-light: #c98dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#af5bc2",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 194
  },
  "hsl": {
    "h": 288.932,
    "s": 45.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.61049,
    "c": 0.17147,
    "h": 320
  },
  "luminance": 0.20491
}

Semantic roles & 50–950 ramp

primary
#AF5BC2
secondary
#AFD2A7
accent
#D5526B
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#130C14
muted
#827D83

Preview Lab

Preview with #AF5BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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