#AF56CA#AF56CA

#AF56CA is a mid, vivid purple. Relative luminance 0.200; OKLCH L 60.8% C 0.187 H 317.7°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#AF56CA
RGBrgb(175, 86, 202)
HSLhsl(286, 52%, 56%)
HSVhsv(286, 57%, 79%)
CMYKcmyk(13.4%, 57.4%, 0%, 20.8%)
CIE-LABlab(51.88, 54.05, -45.16)
CIE-LCHlch(51.88, 70.43, 320.12°)
OKLaboklab(60.81% 0.1385 -0.126)
OKLCHoklch(60.81% 0.187 317.7)
XYZxyz(31.6662, 20.0350, 58.0648)
Luminance0.2003 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56CA #71CA56
analogous
#7556CA #AF56CA #CA56AB
triadic
#AF56CA #CAAF56 #56CAAF
tetradic
#AF56CA #CA7556 #71CA56 #56ABCA
square
#AF56CA #CA7556 #71CA56 #56ABCA
split-complementary
#AF56CA #ABCA56 #56CA75
monochromatic
#6A287E #9136AD #AF56CA #C585D9 #DBB3E7

Accessibility & contrast

On white

4.19
#AF56CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#AF56CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56CA
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56CA#FFFFFF#000000##000000
##AF56CA1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A76CE
Deuteranopia (green-blind)
#5A7FC7
Tritanopia (blue-blind)
#AE6988
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af56ca;
/* rgb */ color: rgb(175, 86, 202);
/* oklch */ color: oklch(60.8% 0.187 317.7);
Tailwind
colors: {
  custom: {
    50: '#ca8ada',
    500: '#af56ca',
    950: '#000000',
  },
}
SCSS
$custom: #af56ca;
$custom-light: #ca8ada;
$custom-dark: #000000;
JSON
{
  "hex": "#af56ca",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 202
  },
  "hsl": {
    "h": 286.034,
    "s": 52.252,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60807,
    "c": 0.18724,
    "h": 317.7
  },
  "luminance": 0.20034
}

Semantic roles & 50–950 ramp

primary
#AF56CA
secondary
#B1D6A6
accent
#DC4C6E
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF56CA

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

Preview Lab → · Contrast checker → · Palette generator →

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