#AF56CB#AF56CB

#AF56CB is a mid, vivid purple. Relative luminance 0.201; OKLCH L 60.9% C 0.188 H 317.4°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#AF56CB
RGBrgb(175, 86, 203)
HSLhsl(286, 53%, 57%)
HSVhsv(286, 58%, 80%)
CMYKcmyk(13.8%, 57.6%, 0%, 20.4%)
CIE-LABlab(51.93, 54.25, -45.65)
CIE-LCHlch(51.93, 70.90, 319.92°)
OKLaboklab(60.86% 0.1386 -0.1274)
OKLCHoklch(60.86% 0.188 317.4)
XYZxyz(31.7849, 20.0825, 58.6903)
Luminance0.2008 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56CB #72CB56
analogous
#7556CB #AF56CB #CB56AD
triadic
#AF56CB #CBAF56 #56CBAF
tetradic
#AF56CB #CB7556 #72CB56 #56ADCB
square
#AF56CB #CB7556 #72CB56 #56ADCB
split-complementary
#AF56CB #ADCB56 #56CB75
monochromatic
#6A277F #9136AE #AF56CB #C585D9 #DBB4E8

Accessibility & contrast

On white

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

On black

5.02
#AF56CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56CB
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56CB#FFFFFF#000000##000000
##AF56CB1.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3976CF
Deuteranopia (green-blind)
#5A7FC8
Tritanopia (blue-blind)
#AE6988
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af56cb;
/* rgb */ color: rgb(175, 86, 203);
/* oklch */ color: oklch(60.9% 0.188 317.4);
Tailwind
colors: {
  custom: {
    50: '#ca8adb',
    500: '#af56cb',
    950: '#000000',
  },
}
SCSS
$custom: #af56cb;
$custom-light: #ca8adb;
$custom-dark: #000000;
JSON
{
  "hex": "#af56cb",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 203
  },
  "hsl": {
    "h": 285.641,
    "s": 52.941,
    "l": 56.667
  },
  "oklch": {
    "l": 0.60864,
    "c": 0.18824,
    "h": 317.4
  },
  "luminance": 0.20081
}

Semantic roles & 50–950 ramp

primary
#AF56CB
secondary
#B2D6A6
accent
#DC4B6E
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF56CB

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

Preview Lab → · Contrast checker → · Palette generator →

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