#AF50AF#AF50AF

#AF50AF is a mid, vivid purple. Relative luminance 0.179; OKLCH L 58.6% C 0.171 H 327.5°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#AF50AF
RGBrgb(175, 80, 175)
HSLhsl(300, 37%, 50%)
HSVhsv(300, 54%, 69%)
CMYKcmyk(0%, 54.3%, 0%, 31.4%)
CIE-LABlab(49.43, 51.78, -33.38)
CIE-LCHlch(49.43, 61.60, 327.20°)
OKLaboklab(58.57% 0.144 -0.0918)
OKLCHoklch(58.57% 0.171 327.5)
XYZxyz(28.2853, 17.9481, 42.5236)
Luminance0.1795 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50AF #50AF50
analogous
#7F50AF #AF50AF #AF5080
triadic
#AF50AF #AFAF50 #50AFAF
tetradic
#AF50AF #AF8050 #50AF50 #507FAF
square
#AF50AF #AF8050 #50AF50 #507FAF
split-complementary
#AF50AF #80AF50 #50AF80
monochromatic
#5B2A5B #853D85 #AF50AF #C27AC2 #D5A4D5

Accessibility & contrast

On white

4.58
#AF50AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#AF50AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50AF
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50AF#FFFFFF#000000##000000
##AF50AF1.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#466EB2
Deuteranopia (green-blind)
#647AAC
Tritanopia (blue-blind)
#B45B78
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af50af;
/* rgb */ color: rgb(175, 80, 175);
/* oklch */ color: oklch(58.6% 0.171 327.5);
Tailwind
colors: {
  custom: {
    50: '#c986c7',
    500: '#af50af',
    950: '#000000',
  },
}
SCSS
$custom: #af50af;
$custom-light: #c986c7;
$custom-dark: #000000;
JSON
{
  "hex": "#af50af",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 37.255,
    "l": 50
  },
  "oklch": {
    "l": 0.58573,
    "c": 0.17079,
    "h": 327.5
  },
  "luminance": 0.17946
}

Semantic roles & 50–950 ramp

primary
#AF50AF
secondary
#98C398
accent
#CD5B5B
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AF50AF

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

Preview Lab → · Contrast checker → · Palette generator →

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