#AF56D5#AF56D5

#AF56D5 is a mid, vivid purple. Relative luminance 0.206; OKLCH L 61.4% C 0.198 H 314.5°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#AF56D5
RGBrgb(175, 86, 213)
HSLhsl(282, 60%, 59%)
HSVhsv(282, 60%, 84%)
CMYKcmyk(17.8%, 59.6%, 0%, 16.5%)
CIE-LABlab(52.48, 56.30, -50.48)
CIE-LCHlch(52.48, 75.62, 318.12°)
OKLaboklab(61.44% 0.1389 -0.1415)
OKLCHoklch(61.44% 0.198 314.5)
XYZxyz(33.0153, 20.5747, 65.1700)
Luminance0.2057 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56D5 #7CD556
analogous
#6F56D5 #AF56D5 #D556BC
triadic
#AF56D5 #D5AF56 #56D5AF
tetradic
#AF56D5 #D56F56 #7CD556 #56BCD5
square
#AF56D5 #D56F56 #7CD556 #56BCD5
split-complementary
#AF56D5 #BCD556 #56D56F
monochromatic
#6E238D #942FBE #AF56D5 #C687E1 #DDB8ED

Accessibility & contrast

On white

4.11
#AF56D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#AF56D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56D5
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56D5#FFFFFF#000000##000000
##AF56D51.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E78D9
Deuteranopia (green-blind)
#5380D2
Tritanopia (blue-blind)
#AC6C8E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af56d5;
/* rgb */ color: rgb(175, 86, 213);
/* oklch */ color: oklch(61.4% 0.198 314.5);
Tailwind
colors: {
  custom: {
    50: '#ca8ae2',
    500: '#af56d5',
    950: '#000000',
  },
}
SCSS
$custom: #af56d5;
$custom-light: #ca8ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#af56d5",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 213
  },
  "hsl": {
    "h": 282.047,
    "s": 60.19,
    "l": 58.627
  },
  "oklch": {
    "l": 0.61443,
    "c": 0.19828,
    "h": 314.5
  },
  "luminance": 0.20574
}

Semantic roles & 50–950 ramp

primary
#AF56D5
secondary
#B9DDAA
accent
#E34474
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF56D5

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

Preview Lab → · Contrast checker → · Palette generator →

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