#AF55B2#AF55B2

#AF55B2 is a mid, vivid purple. Relative luminance 0.188; OKLCH L 59.4% C 0.166 H 326.2°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#AF55B2
RGBrgb(175, 85, 178)
HSLhsl(298, 38%, 52%)
HSVhsv(298, 52%, 70%)
CMYKcmyk(1.7%, 52.2%, 0%, 30.2%)
CIE-LABlab(50.48, 49.89, -33.48)
CIE-LCHlch(50.48, 60.09, 326.14°)
OKLaboklab(59.39% 0.1376 -0.0921)
OKLCHoklch(59.39% 0.166 326.2)
XYZxyz(28.9630, 18.8269, 44.2192)
Luminance0.1883 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF55B2 #58B255
analogous
#8155B2 #AF55B2 #B25587
triadic
#AF55B2 #B2AF55 #55B2AF
tetradic
#AF55B2 #B28155 #58B255 #5587B2
square
#AF55B2 #B28155 #58B255 #5587B2
split-complementary
#AF55B2 #87B255 #55B281
monochromatic
#5F2C61 #883F8B #AF55B2 #C37FC5 #D7A9D8

Accessibility & contrast

On white

4.41
#AF55B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#AF55B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF55B2
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF55B2#FFFFFF#000000##000000
##AF55B21.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B71B5
Deuteranopia (green-blind)
#667CAF
Tritanopia (blue-blind)
#B3607C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af55b2;
/* rgb */ color: rgb(175, 85, 178);
/* oklch */ color: oklch(59.4% 0.166 326.2);
Tailwind
colors: {
  custom: {
    50: '#c989c9',
    500: '#af55b2',
    950: '#000000',
  },
}
SCSS
$custom: #af55b2;
$custom-light: #c989c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af55b2",
  "rgb": {
    "r": 175,
    "g": 85,
    "b": 178
  },
  "hsl": {
    "h": 298.065,
    "s": 37.652,
    "l": 51.569
  },
  "oklch": {
    "l": 0.59392,
    "c": 0.16559,
    "h": 326.2
  },
  "luminance": 0.18825
}

Semantic roles & 50–950 ramp

primary
#AF55B2
secondary
#9EC69D
accent
#CE5A5E
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#130C13
muted
#827D82

Preview Lab

Preview with #AF55B2

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

Preview Lab → · Contrast checker → · Palette generator →

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