#AF40AF#AF40AF

#AF40AF is a mid, vivid purple. Relative luminance 0.159; OKLCH L 56.7% C 0.194 H 327.8°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AF40AF
RGBrgb(175, 64, 175)
HSLhsl(300, 46%, 47%)
HSVhsv(300, 63%, 69%)
CMYKcmyk(0%, 63.4%, 0%, 31.4%)
CIE-LABlab(46.81, 58.95, -37.49)
CIE-LCHlch(46.81, 69.86, 327.54°)
OKLaboklab(56.66% 0.1642 -0.1036)
OKLCHoklch(56.66% 0.194 327.8)
XYZxyz(27.2501, 15.8777, 42.1786)
Luminance0.1588 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF40AF #40AF40
analogous
#7840AF #AF40AF #AF4078
triadic
#AF40AF #AFAF40 #40AFAF
tetradic
#AF40AF #AF7840 #40AF40 #4078AF
square
#AF40AF #AF7840 #40AF40 #4078AF
split-complementary
#AF40AF #78AF40 #40AF78
monochromatic
#551F55 #823082 #AF40AF #C765C7 #D792D7

Accessibility & contrast

On white

5.03
#AF40AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#AF40AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF40AF
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF40AF#FFFFFF#000000##FFFFFF
##AF40AF1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3266B2
Deuteranopia (green-blind)
#5B74AC
Tritanopia (blue-blind)
#B44F72
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af40af;
/* rgb */ color: rgb(175, 64, 175);
/* oklch */ color: oklch(56.7% 0.194 327.8);
Tailwind
colors: {
  custom: {
    50: '#ca7dc7',
    500: '#af40af',
    950: '#000000',
  },
}
SCSS
$custom: #af40af;
$custom-light: #ca7dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#af40af",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.56662,
    "c": 0.19416,
    "h": 327.8
  },
  "luminance": 0.15876
}

Semantic roles & 50–950 ramp

primary
#AF40AF
secondary
#88C388
accent
#D65252
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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