#AF5CCB#AF5CCB

#AF5CCB is a mid, vivid purple. Relative luminance 0.211; OKLCH L 61.7% C 0.179 H 316.9°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#AF5CCB
RGBrgb(175, 92, 203)
HSLhsl(285, 52%, 58%)
HSVhsv(285, 55%, 80%)
CMYKcmyk(13.8%, 54.7%, 0%, 20.4%)
CIE-LABlab(53.04, 51.28, -43.89)
CIE-LCHlch(53.04, 67.50, 319.44°)
OKLaboklab(61.68% 0.1308 -0.1223)
OKLCHoklch(61.68% 0.179 316.9)
XYZxyz(32.2843, 21.0812, 58.8568)
Luminance0.2108 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5CCB #78CB5C
analogous
#775CCB #AF5CCB #CB5CAF
triadic
#AF5CCB #CBAF5C #5CCBAF
tetradic
#AF5CCB #CB775C #78CB5C #5CAFCB
square
#AF5CCB #CB775C #78CB5C #5CAFCB
split-complementary
#AF5CCB #AFCB5C #5CCB77
monochromatic
#6C2A83 #9339B1 #AF5CCB #C68ADA #DDB9E9

Accessibility & contrast

On white

4.03
#AF5CCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#AF5CCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5CCB
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5CCB#FFFFFF#000000##000000
##AF5CCB1.004.035.225.22
#FFFFFF4.031.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4379CF
Deuteranopia (green-blind)
#5F81C8
Tritanopia (blue-blind)
#AE6D8B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af5ccb;
/* rgb */ color: rgb(175, 92, 203);
/* oklch */ color: oklch(61.7% 0.179 316.9);
Tailwind
colors: {
  custom: {
    50: '#c98edb',
    500: '#af5ccb',
    950: '#000000',
  },
}
SCSS
$custom: #af5ccb;
$custom-light: #c98edb;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ccb",
  "rgb": {
    "r": 175,
    "g": 92,
    "b": 203
  },
  "hsl": {
    "h": 284.865,
    "s": 51.628,
    "l": 57.843
  },
  "oklch": {
    "l": 0.61675,
    "c": 0.17906,
    "h": 316.9
  },
  "luminance": 0.2108
}

Semantic roles & 50–950 ramp

primary
#AF5CCB
secondary
#B6D8AB
accent
#DB4D71
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AF5CCB

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

Preview Lab → · Contrast checker → · Palette generator →

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