#AF5BCB#AF5BCB

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

Color values

HEX#AF5BCB
RGBrgb(175, 91, 203)
HSLhsl(285, 52%, 58%)
HSVhsv(285, 55%, 80%)
CMYKcmyk(13.8%, 55.2%, 0%, 20.4%)
CIE-LABlab(52.85, 51.79, -44.19)
CIE-LCHlch(52.85, 68.08, 319.53°)
OKLaboklab(61.54% 0.1321 -0.1232)
OKLCHoklch(61.54% 0.181 317)
XYZxyz(32.1982, 20.9091, 58.8281)
Luminance0.2091 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BCB #77CB5B
analogous
#775BCB #AF5BCB #CB5BAF
triadic
#AF5BCB #CBAF5B #5BCBAF
tetradic
#AF5BCB #CB775B #77CB5B #5BAFCB
square
#AF5BCB #CB775B #77CB5B #5BAFCB
split-complementary
#AF5BCB #AFCB5B #5BCB77
monochromatic
#6C2982 #9338B1 #AF5BCB #C689DA #DCB8E8

Accessibility & contrast

On white

4.05
#AF5BCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#AF5BCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BCB
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BCB#FFFFFF#000000##000000
##AF5BCB1.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4179CF
Deuteranopia (green-blind)
#5E81C8
Tritanopia (blue-blind)
#AE6D8A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af5bcb;
/* rgb */ color: rgb(175, 91, 203);
/* oklch */ color: oklch(61.5% 0.181 317.0);
Tailwind
colors: {
  custom: {
    50: '#c98ddb',
    500: '#af5bcb',
    950: '#000000',
  },
}
SCSS
$custom: #af5bcb;
$custom-light: #c98ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#af5bcb",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 203
  },
  "hsl": {
    "h": 285,
    "s": 51.852,
    "l": 57.647
  },
  "oklch": {
    "l": 0.61537,
    "c": 0.18061,
    "h": 317
  },
  "luminance": 0.20908
}

Semantic roles & 50–950 ramp

primary
#AF5BCB
secondary
#B6D7AA
accent
#DB4C70
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AF5BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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