#AF51AF#AF51AF

#AF51AF is a mid, vivid purple. Relative luminance 0.181; OKLCH L 58.7% C 0.169 H 327.5°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#AF51AF
RGBrgb(175, 81, 175)
HSLhsl(300, 37%, 50%)
HSVhsv(300, 54%, 69%)
CMYKcmyk(0%, 53.7%, 0%, 31.4%)
CIE-LABlab(49.61, 51.30, -33.10)
CIE-LCHlch(49.61, 61.05, 327.17°)
OKLaboklab(58.7% 0.1427 -0.091)
OKLCHoklch(58.7% 0.169 327.5)
XYZxyz(28.3590, 18.0956, 42.5482)
Luminance0.1809 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF51AF #51AF51
analogous
#8051AF #AF51AF #AF5180
triadic
#AF51AF #AFAF51 #51AFAF
tetradic
#AF51AF #AF8051 #51AF51 #5180AF
square
#AF51AF #AF8051 #51AF51 #5180AF
split-complementary
#AF51AF #80AF51 #51AF80
monochromatic
#5C2A5C #853D85 #AF51AF #C27BC2 #D6A5D6

Accessibility & contrast

On white

4.55
#AF51AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#AF51AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF51AF
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF51AF#FFFFFF#000000##000000
##AF51AF1.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#486EB2
Deuteranopia (green-blind)
#657AAC
Tritanopia (blue-blind)
#B45C78
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af51af;
/* rgb */ color: rgb(175, 81, 175);
/* oklch */ color: oklch(58.7% 0.169 327.5);
Tailwind
colors: {
  custom: {
    50: '#c986c7',
    500: '#af51af',
    950: '#000000',
  },
}
SCSS
$custom: #af51af;
$custom-light: #c986c7;
$custom-dark: #000000;
JSON
{
  "hex": "#af51af",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58704,
    "c": 0.16922,
    "h": 327.5
  },
  "luminance": 0.18094
}

Semantic roles & 50–950 ramp

primary
#AF51AF
secondary
#99C399
accent
#CD5B5B
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AF51AF

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

Preview Lab → · Contrast checker → · Palette generator →

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