#AF50CD#AF50CD

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

Color values

HEX#AF50CD
RGBrgb(175, 80, 205)
HSLhsl(286, 56%, 56%)
HSVhsv(286, 61%, 80%)
CMYKcmyk(14.6%, 61%, 0%, 19.6%)
CIE-LABlab(50.99, 57.50, -48.29)
CIE-LCHlch(50.99, 75.09, 319.98°)
OKLaboklab(60.22% 0.1461 -0.135)
OKLCHoklch(60.22% 0.199 317.3)
XYZxyz(31.5657, 19.2603, 59.8006)
Luminance0.1926 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50CD #6ECD50
analogous
#7050CD #AF50CD #CD50AC
triadic
#AF50CD #CDAF50 #50CDAF
tetradic
#AF50CD #CD7050 #6ECD50 #50ACCD
square
#AF50CD #CD7050 #6ECD50 #50ACCD
split-complementary
#AF50CD #ACCD50 #50CD70
monochromatic
#69247E #9032AE #AF50CD #C580DB #DBAFE8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF50CD#FFFFFF#000000##000000
##AF50CD1.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)
#2B73D1
Deuteranopia (green-blind)
#537CCA
Tritanopia (blue-blind)
#AE6587
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af50cd;
/* rgb */ color: rgb(175, 80, 205);
/* oklch */ color: oklch(60.2% 0.199 317.3);
Tailwind
colors: {
  custom: {
    50: '#ca86dd',
    500: '#af50cd',
    950: '#000000',
  },
}
SCSS
$custom: #af50cd;
$custom-light: #ca86dd;
$custom-dark: #000000;
JSON
{
  "hex": "#af50cd",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 205
  },
  "hsl": {
    "h": 285.6,
    "s": 55.556,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60215,
    "c": 0.19899,
    "h": 317.3
  },
  "luminance": 0.19259
}

Semantic roles & 50–950 ramp

primary
#AF50CD
secondary
#AFD6A2
accent
#DF496D
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF50CD

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

Preview Lab → · Contrast checker → · Palette generator →

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