#AF50CA#AF50CA

#AF50CA is a mid, vivid purple. Relative luminance 0.191; OKLCH L 60.0% C 0.196 H 318.2°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#AF50CA
RGBrgb(175, 80, 202)
HSLhsl(287, 54%, 55%)
HSVhsv(287, 60%, 79%)
CMYKcmyk(13.4%, 60.4%, 0%, 20.8%)
CIE-LABlab(50.82, 56.91, -46.83)
CIE-LCHlch(50.82, 73.70, 320.55°)
OKLaboklab(60.04% 0.1461 -0.1308)
OKLCHoklch(60.04% 0.196 318.2)
XYZxyz(31.2071, 19.1168, 57.9117)
Luminance0.1912 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50CA #6BCA50
analogous
#7250CA #AF50CA #CA50A8
triadic
#AF50CA #CAAF50 #50CAAF
tetradic
#AF50CA #CA7250 #6BCA50 #50A8CA
square
#AF50CA #CA7250 #6BCA50 #50A8CA
split-complementary
#AF50CA #A8CA50 #50CA72
monochromatic
#68257A #8F33A9 #AF50CA #C47FD8 #DAAEE6

Accessibility & contrast

On white

4.35
#AF50CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#AF50CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50CA
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50CA#FFFFFF#000000##000000
##AF50CA1.004.354.824.82
#FFFFFF4.351.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F73CE
Deuteranopia (green-blind)
#557CC7
Tritanopia (blue-blind)
#AF6486
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af50ca;
/* rgb */ color: rgb(175, 80, 202);
/* oklch */ color: oklch(60.0% 0.196 318.2);
Tailwind
colors: {
  custom: {
    50: '#ca86db',
    500: '#af50ca',
    950: '#000000',
  },
}
SCSS
$custom: #af50ca;
$custom-light: #ca86db;
$custom-dark: #000000;
JSON
{
  "hex": "#af50ca",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 202
  },
  "hsl": {
    "h": 286.721,
    "s": 53.509,
    "l": 55.294
  },
  "oklch": {
    "l": 0.6004,
    "c": 0.19609,
    "h": 318.2
  },
  "luminance": 0.19116
}

Semantic roles & 50–950 ramp

primary
#AF50CA
secondary
#ADD4A1
accent
#DD4B6B
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF50CA

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

Preview Lab → · Contrast checker → · Palette generator →

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