#AF5BCC#AF5BCC

#AF5BCC is a mid, vivid purple. Relative luminance 0.210; OKLCH L 61.6% C 0.182 H 316.7°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#AF5BCC
RGBrgb(175, 91, 204)
HSLhsl(285, 53%, 58%)
HSVhsv(285, 55%, 80%)
CMYKcmyk(14.2%, 55.4%, 0%, 20%)
CIE-LABlab(52.90, 51.99, -44.68)
CIE-LCHlch(52.90, 68.55, 319.33°)
OKLaboklab(61.59% 0.1322 -0.1246)
OKLCHoklch(61.59% 0.182 316.7)
XYZxyz(32.3178, 20.9569, 59.4577)
Luminance0.2096 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BCC #78CC5B
analogous
#775BCC #AF5BCC #CC5BB0
triadic
#AF5BCC #CCAF5B #5BCCAF
tetradic
#AF5BCC #CC775B #78CC5B #5BB0CC
square
#AF5BCC #CC775B #78CC5B #5BB0CC
split-complementary
#AF5BCC #B0CC5B #5BCC77
monochromatic
#6C2984 #9337B2 #AF5BCC #C68ADB #DDB8E9

Accessibility & contrast

On white

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

On black

5.19
#AF5BCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BCC
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BCC#FFFFFF#000000##000000
##AF5BCC1.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4079D0
Deuteranopia (green-blind)
#5D81C9
Tritanopia (blue-blind)
#AE6D8B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af5bcc;
/* rgb */ color: rgb(175, 91, 204);
/* oklch */ color: oklch(61.6% 0.182 316.7);
Tailwind
colors: {
  custom: {
    50: '#c98ddc',
    500: '#af5bcc',
    950: '#000000',
  },
}
SCSS
$custom: #af5bcc;
$custom-light: #c98ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#af5bcc",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 204
  },
  "hsl": {
    "h": 284.602,
    "s": 52.558,
    "l": 57.843
  },
  "oklch": {
    "l": 0.61592,
    "c": 0.18164,
    "h": 316.7
  },
  "luminance": 0.20956
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF5BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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