#AF51CA#AF51CA

#AF51CA is a mid, vivid purple. Relative luminance 0.193; OKLCH L 60.2% C 0.195 H 318.1°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#AF51CA
RGBrgb(175, 81, 202)
HSLhsl(287, 53%, 55%)
HSVhsv(287, 60%, 79%)
CMYKcmyk(13.4%, 59.9%, 0%, 20.8%)
CIE-LABlab(50.99, 56.44, -46.56)
CIE-LCHlch(50.99, 73.16, 320.48°)
OKLaboklab(60.17% 0.1448 -0.13)
OKLCHoklch(60.17% 0.195 318.1)
XYZxyz(31.2808, 19.2643, 57.9363)
Luminance0.1926 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF51CA #6CCA51
analogous
#7351CA #AF51CA #CA51A8
triadic
#AF51CA #CAAF51 #51CAAF
tetradic
#AF51CA #CA7351 #6CCA51 #51A8CA
square
#AF51CA #CA7351 #6CCA51 #51A8CA
split-complementary
#AF51CA #A8CA51 #51CA73
monochromatic
#68257B #9034AA #AF51CA #C580D8 #DAAFE7

Accessibility & contrast

On white

4.33
#AF51CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#AF51CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF51CA
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF51CA#FFFFFF#000000##000000
##AF51CA1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3173CE
Deuteranopia (green-blind)
#567DC7
Tritanopia (blue-blind)
#AF6586
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af51ca;
/* rgb */ color: rgb(175, 81, 202);
/* oklch */ color: oklch(60.2% 0.195 318.1);
Tailwind
colors: {
  custom: {
    50: '#ca87db',
    500: '#af51ca',
    950: '#000000',
  },
}
SCSS
$custom: #af51ca;
$custom-light: #ca87db;
$custom-dark: #000000;
JSON
{
  "hex": "#af51ca",
  "rgb": {
    "r": 175,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 286.612,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.60165,
    "c": 0.19464,
    "h": 318.1
  },
  "luminance": 0.19263
}

Semantic roles & 50–950 ramp

primary
#AF51CA
secondary
#ADD5A2
accent
#DD4B6C
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF51CA

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

Preview Lab → · Contrast checker → · Palette generator →

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