#AF56BB#AF56BB

#AF56BB is a mid, vivid purple. Relative luminance 0.194; OKLCH L 60.0% C 0.173 H 322.7°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AF56BB
RGBrgb(175, 86, 187)
HSLhsl(293, 43%, 54%)
HSVhsv(293, 54%, 73%)
CMYKcmyk(6.4%, 54%, 0%, 26.7%)
CIE-LABlab(51.10, 51.10, -37.74)
CIE-LCHlch(51.10, 63.52, 323.55°)
OKLaboklab(59.99% 0.1373 -0.1044)
OKLCHoklch(59.99% 0.173 322.7)
XYZxyz(29.9757, 19.3588, 49.1618)
Luminance0.1936 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF56BB #62BB56
analogous
#7C56BB #AF56BB #BB5694
triadic
#AF56BB #BBAF56 #56BBAF
tetradic
#AF56BB #BB7C56 #62BB56 #5694BB
square
#AF56BB #BB7C56 #62BB56 #5694BB
split-complementary
#AF56BB #94BB56 #56BB7C
monochromatic
#642B6B #8C3D97 #AF56BB #C482CD #D8ADDE

Accessibility & contrast

On white

4.31
#AF56BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#AF56BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF56BB
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF56BB#FFFFFF#000000##000000
##AF56BB1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4673BE
Deuteranopia (green-blind)
#637DB8
Tritanopia (blue-blind)
#B16480
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af56bb;
/* rgb */ color: rgb(175, 86, 187);
/* oklch */ color: oklch(60.0% 0.173 322.7);
Tailwind
colors: {
  custom: {
    50: '#c98ad0',
    500: '#af56bb',
    950: '#000000',
  },
}
SCSS
$custom: #af56bb;
$custom-light: #c98ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#af56bb",
  "rgb": {
    "r": 175,
    "g": 86,
    "b": 187
  },
  "hsl": {
    "h": 292.871,
    "s": 42.616,
    "l": 53.529
  },
  "oklch": {
    "l": 0.5999,
    "c": 0.17253,
    "h": 322.7
  },
  "luminance": 0.19357
}

Semantic roles & 50–950 ramp

primary
#AF56BB
secondary
#A6CCA1
accent
#D25564
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AF56BB

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

Preview Lab → · Contrast checker → · Palette generator →

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