#AF56C2#AF56C2

#AF56C2 is a mid, vivid purple. Relative luminance 0.197; OKLCH L 60.4% C 0.179 H 320.3°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#AF56C2
RGBrgb(175, 86, 194)
HSLhsl(289, 47%, 55%)
HSVhsv(289, 56%, 76%)
CMYKcmyk(9.8%, 55.7%, 0%, 23.9%)
CIE-LABlab(51.46, 52.46, -41.22)
CIE-LCHlch(51.46, 66.72, 321.84°)
OKLaboklab(60.36% 0.138 -0.1145)
OKLCHoklch(60.36% 0.179 320.3)
XYZxyz(30.7434, 19.6659, 53.2050)
Luminance0.1966 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56C2 #69C256
analogous
#7956C2 #AF56C2 #C2569F
triadic
#AF56C2 #C2AF56 #56C2AF
tetradic
#AF56C2 #C27956 #69C256 #569FC2
square
#AF56C2 #C27956 #69C256 #569FC2
split-complementary
#AF56C2 #9FC256 #56C279
monochromatic
#672A74 #8F3AA1 #AF56C2 #C483D2 #DAB0E2

Accessibility & contrast

On white

4.26
#AF56C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#AF56C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56C2
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56C2#FFFFFF#000000##000000
##AF56C21.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4174C5
Deuteranopia (green-blind)
#5F7EBF
Tritanopia (blue-blind)
#B06684
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af56c2;
/* rgb */ color: rgb(175, 86, 194);
/* oklch */ color: oklch(60.4% 0.179 320.3);
Tailwind
colors: {
  custom: {
    50: '#c98ad5',
    500: '#af56c2',
    950: '#000000',
  },
}
SCSS
$custom: #af56c2;
$custom-light: #c98ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#af56c2",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 194
  },
  "hsl": {
    "h": 289.444,
    "s": 46.957,
    "l": 54.902
  },
  "oklch": {
    "l": 0.60364,
    "c": 0.17933,
    "h": 320.3
  },
  "luminance": 0.19665
}

Semantic roles & 50–950 ramp

primary
#AF56C2
secondary
#ABD1A3
accent
#D75169
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#130C14
muted
#827D83

Preview Lab

Preview with #AF56C2

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

Preview Lab → · Contrast checker → · Palette generator →

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