#AF50CB#AF50CB

#AF50CB is a mid, vivid purple. Relative luminance 0.192; OKLCH L 60.1% C 0.197 H 317.9°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#AF50CB
RGBrgb(175, 80, 203)
HSLhsl(286, 54%, 55%)
HSVhsv(286, 61%, 80%)
CMYKcmyk(13.8%, 60.6%, 0%, 20.4%)
CIE-LABlab(50.88, 57.10, -47.32)
CIE-LCHlch(50.88, 74.16, 320.35°)
OKLaboklab(60.1% 0.1461 -0.1322)
OKLCHoklch(60.1% 0.197 317.9)
XYZxyz(31.3258, 19.1643, 58.5373)
Luminance0.1916 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50CB #6CCB50
analogous
#7150CB #AF50CB #CB50AA
triadic
#AF50CB #CBAF50 #50CBAF
tetradic
#AF50CB #CB7150 #6CCB50 #50AACB
square
#AF50CB #CB7150 #6CCB50 #50AACB
split-complementary
#AF50CB #AACB50 #50CB71
monochromatic
#68257C #9033AB #AF50CB #C57FD9 #DAAEE7

Accessibility & contrast

On white

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

On black

4.83
#AF50CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50CB
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50CB#FFFFFF#000000##000000
##AF50CB1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E73CF
Deuteranopia (green-blind)
#557CC8
Tritanopia (blue-blind)
#AE6586
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af50cb;
/* rgb */ color: rgb(175, 80, 203);
/* oklch */ color: oklch(60.1% 0.197 317.9);
Tailwind
colors: {
  custom: {
    50: '#ca86db',
    500: '#af50cb',
    950: '#000000',
  },
}
SCSS
$custom: #af50cb;
$custom-light: #ca86db;
$custom-dark: #000000;
JSON
{
  "hex": "#af50cb",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 203
  },
  "hsl": {
    "h": 286.341,
    "s": 54.185,
    "l": 55.49
  },
  "oklch": {
    "l": 0.60098,
    "c": 0.19705,
    "h": 317.9
  },
  "luminance": 0.19163
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF50CB

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

Preview Lab → · Contrast checker → · Palette generator →

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