#AF50C1#AF50C1

#AF50C1 is a mid, vivid purple. Relative luminance 0.187; OKLCH L 59.5% C 0.187 H 321.0°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#AF50C1
RGBrgb(175, 80, 193)
HSLhsl(290, 48%, 54%)
HSVhsv(290, 59%, 76%)
CMYKcmyk(9.3%, 58.5%, 0%, 24.3%)
CIE-LABlab(50.34, 55.14, -42.42)
CIE-LCHlch(50.34, 69.57, 322.43°)
OKLaboklab(59.53% 0.1457 -0.118)
OKLCHoklch(59.53% 0.187 321)
XYZxyz(30.1724, 18.7029, 52.4625)
Luminance0.1870 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50C1 #62C150
analogous
#7650C1 #AF50C1 #C1509A
triadic
#AF50C1 #C1AF50 #50C1AF
tetradic
#AF50C1 #C17650 #62C150 #509AC1
square
#AF50C1 #C17650 #62C150 #509AC1
split-complementary
#AF50C1 #9AC150 #50C176
monochromatic
#64276F #8C379C #AF50C1 #C47DD1 #D8AAE1

Accessibility & contrast

On white

4.43
#AF50C1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#AF50C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50C1
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50C1#FFFFFF#000000##000000
##AF50C11.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3971C5
Deuteranopia (green-blind)
#5B7BBE
Tritanopia (blue-blind)
#B06181
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af50c1;
/* rgb */ color: rgb(175, 80, 193);
/* oklch */ color: oklch(59.5% 0.187 321.0);
Tailwind
colors: {
  custom: {
    50: '#ca86d4',
    500: '#af50c1',
    950: '#000000',
  },
}
SCSS
$custom: #af50c1;
$custom-light: #ca86d4;
$custom-dark: #000000;
JSON
{
  "hex": "#af50c1",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 193
  },
  "hsl": {
    "h": 290.442,
    "s": 47.679,
    "l": 53.529
  },
  "oklch": {
    "l": 0.59529,
    "c": 0.18746,
    "h": 321
  },
  "luminance": 0.18702
}

Semantic roles & 50–950 ramp

primary
#AF50C1
secondary
#A6CF9E
accent
#D75166
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140C14
muted
#827D83

Preview Lab

Preview with #AF50C1

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

Preview Lab → · Contrast checker → · Palette generator →

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