#AF56BA#AF56BA

#AF56BA is a mid, vivid purple. Relative luminance 0.193; OKLCH L 59.9% C 0.172 H 323.1°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AF56BA
RGBrgb(175, 86, 186)
HSLhsl(293, 42%, 53%)
HSVhsv(293, 54%, 73%)
CMYKcmyk(5.9%, 53.8%, 0%, 27.1%)
CIE-LABlab(51.06, 50.91, -37.23)
CIE-LCHlch(51.06, 63.07, 323.82°)
OKLaboklab(59.94% 0.1372 -0.103)
OKLCHoklch(59.94% 0.172 323.1)
XYZxyz(29.8690, 19.3162, 48.5999)
Luminance0.1931 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56BA #61BA56
analogous
#7D56BA #AF56BA #BA5693
triadic
#AF56BA #BAAF56 #56BAAF
tetradic
#AF56BA #BA7D56 #61BA56 #5693BA
square
#AF56BA #BA7D56 #61BA56 #5693BA
split-complementary
#AF56BA #93BA56 #56BA7D
monochromatic
#632B6A #8C3D96 #AF56BA #C481CC #D8ADDD

Accessibility & contrast

On white

4.32
#AF56BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#AF56BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56BA
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56BA#FFFFFF#000000##000000
##AF56BA1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4773BD
Deuteranopia (green-blind)
#637DB7
Tritanopia (blue-blind)
#B26380
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af56ba;
/* rgb */ color: rgb(175, 86, 186);
/* oklch */ color: oklch(59.9% 0.172 323.1);
Tailwind
colors: {
  custom: {
    50: '#c98acf',
    500: '#af56ba',
    950: '#000000',
  },
}
SCSS
$custom: #af56ba;
$custom-light: #c98acf;
$custom-dark: #000000;
JSON
{
  "hex": "#af56ba",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 186
  },
  "hsl": {
    "h": 293.4,
    "s": 42.017,
    "l": 53.333
  },
  "oklch": {
    "l": 0.59938,
    "c": 0.17156,
    "h": 323.1
  },
  "luminance": 0.19315
}

Semantic roles & 50–950 ramp

primary
#AF56BA
secondary
#A5CBA0
accent
#D25664
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AF56BA

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

Preview Lab → · Contrast checker → · Palette generator →

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