#AF56B2#AF56B2

#AF56B2 is a mid, vivid purple. Relative luminance 0.190; OKLCH L 59.5% C 0.164 H 326.2°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#AF56B2
RGBrgb(175, 86, 178)
HSLhsl(298, 37%, 52%)
HSVhsv(298, 52%, 70%)
CMYKcmyk(1.7%, 51.7%, 0%, 30.2%)
CIE-LABlab(50.67, 49.40, -33.19)
CIE-LCHlch(50.67, 59.51, 326.10°)
OKLaboklab(59.53% 0.1362 -0.0913)
OKLCHoklch(59.53% 0.164 326.2)
XYZxyz(29.0423, 18.9855, 44.2457)
Luminance0.1898 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56B2 #59B256
analogous
#8156B2 #AF56B2 #B25687
triadic
#AF56B2 #B2AF56 #56B2AF
tetradic
#AF56B2 #B28156 #59B256 #5687B2
square
#AF56B2 #B28156 #59B256 #5687B2
split-complementary
#AF56B2 #87B256 #56B281
monochromatic
#602C61 #893F8B #AF56B2 #C380C5 #D7AAD8

Accessibility & contrast

On white

4.38
#AF56B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#AF56B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56B2
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56B2#FFFFFF#000000##000000
##AF56B21.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C71B5
Deuteranopia (green-blind)
#677DAF
Tritanopia (blue-blind)
#B3617C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af56b2;
/* rgb */ color: rgb(175, 86, 178);
/* oklch */ color: oklch(59.5% 0.164 326.2);
Tailwind
colors: {
  custom: {
    50: '#c989c9',
    500: '#af56b2',
    950: '#000000',
  },
}
SCSS
$custom: #af56b2;
$custom-light: #c989c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af56b2",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 178
  },
  "hsl": {
    "h": 298.043,
    "s": 37.398,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59529,
    "c": 0.16398,
    "h": 326.2
  },
  "luminance": 0.18984
}

Semantic roles & 50–950 ramp

primary
#AF56B2
secondary
#9FC69E
accent
#CD5A5E
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#130C13
muted
#827D82

Preview Lab

Preview with #AF56B2

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

Preview Lab → · Contrast checker → · Palette generator →

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