#AF55C8#AF55C8

#AF55C8 is a mid, vivid purple. Relative luminance 0.198; OKLCH L 60.6% C 0.187 H 318.4°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#AF55C8
RGBrgb(175, 85, 200)
HSLhsl(287, 51%, 56%)
HSVhsv(287, 58%, 78%)
CMYKcmyk(12.5%, 57.5%, 0%, 21.6%)
CIE-LABlab(51.59, 54.13, -44.46)
CIE-LCHlch(51.59, 70.05, 320.60°)
OKLaboklab(60.56% 0.1397 -0.1239)
OKLCHoklch(60.56% 0.187 318.4)
XYZxyz(31.3516, 19.7823, 56.7993)
Luminance0.1978 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF55C8 #6EC855
analogous
#7555C8 #AF55C8 #C855A7
triadic
#AF55C8 #C8AF55 #55C8AF
tetradic
#AF55C8 #C87555 #6EC855 #55A7C8
square
#AF55C8 #C87555 #6EC855 #55A7C8
split-complementary
#AF55C8 #A7C855 #55C875
monochromatic
#69287B #9037A9 #AF55C8 #C583D7 #DBB1E6

Accessibility & contrast

On white

4.24
#AF55C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#AF55C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF55C8
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF55C8#FFFFFF#000000##000000
##AF55C81.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A75CC
Deuteranopia (green-blind)
#5B7EC5
Tritanopia (blue-blind)
#AF6787
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af55c8;
/* rgb */ color: rgb(175, 85, 200);
/* oklch */ color: oklch(60.6% 0.187 318.4);
Tailwind
colors: {
  custom: {
    50: '#ca89d9',
    500: '#af55c8',
    950: '#000000',
  },
}
SCSS
$custom: #af55c8;
$custom-light: #ca89d9;
$custom-dark: #000000;
JSON
{
  "hex": "#af55c8",
  "rgb": {
    "r": 175,
    "g": 85,
    "b": 200
  },
  "hsl": {
    "h": 286.957,
    "s": 51.111,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60563,
    "c": 0.18677,
    "h": 318.4
  },
  "luminance": 0.19781
}

Semantic roles & 50–950 ramp

primary
#AF55C8
secondary
#AFD4A5
accent
#DB4D6C
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF55C8

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

Preview Lab → · Contrast checker → · Palette generator →

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