#AF56BF#AF56BF

#AF56BF is a mid, vivid purple. Relative luminance 0.195; OKLCH L 60.2% C 0.176 H 321.3°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#AF56BF
RGBrgb(175, 86, 191)
HSLhsl(291, 45%, 54%)
HSVhsv(291, 55%, 75%)
CMYKcmyk(8.4%, 55%, 0%, 25.1%)
CIE-LABlab(51.30, 51.87, -39.73)
CIE-LCHlch(51.30, 65.34, 322.55°)
OKLaboklab(60.2% 0.1377 -0.1102)
OKLCHoklch(60.2% 0.176 321.3)
XYZxyz(30.4099, 19.5325, 51.4484)
Luminance0.1953 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56BF #66BF56
analogous
#7B56BF #AF56BF #BF569B
triadic
#AF56BF #BFAF56 #56BFAF
tetradic
#AF56BF #BF7B56 #66BF56 #569BBF
square
#AF56BF #BF7B56 #66BF56 #569BBF
split-complementary
#AF56BF #9BBF56 #56BF7B
monochromatic
#662A70 #8E3B9D #AF56BF #C482D0 #D9AFE1

Accessibility & contrast

On white

4.28
#AF56BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#AF56BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56BF
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56BF#FFFFFF#000000##000000
##AF56BF1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4374C2
Deuteranopia (green-blind)
#617EBC
Tritanopia (blue-blind)
#B16582
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af56bf;
/* rgb */ color: rgb(175, 86, 191);
/* oklch */ color: oklch(60.2% 0.176 321.3);
Tailwind
colors: {
  custom: {
    50: '#c98ad3',
    500: '#af56bf',
    950: '#000000',
  },
}
SCSS
$custom: #af56bf;
$custom-light: #c98ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#af56bf",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 191
  },
  "hsl": {
    "h": 290.857,
    "s": 45.064,
    "l": 54.314
  },
  "oklch": {
    "l": 0.60203,
    "c": 0.1764,
    "h": 321.3
  },
  "luminance": 0.19531
}

Semantic roles & 50–950 ramp

primary
#AF56BF
secondary
#A9CFA2
accent
#D55367
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#130C14
muted
#827D83

Preview Lab

Preview with #AF56BF

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

Preview Lab → · Contrast checker → · Palette generator →

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