#AF40C1#AF40C1

#AF40C1 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.7% C 0.210 H 321.8°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#AF40C1
RGBrgb(175, 64, 193)
HSLhsl(292, 51%, 50%)
HSVhsv(292, 67%, 76%)
CMYKcmyk(9.3%, 66.8%, 0%, 24.3%)
CIE-LABlab(47.79, 62.16, -46.46)
CIE-LCHlch(47.79, 77.61, 323.23°)
OKLaboklab(57.69% 0.1647 -0.1296)
OKLCHoklch(57.69% 0.21 321.8)
XYZxyz(29.1372, 16.6326, 52.1174)
Luminance0.1663 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF40C1 #52C140
analogous
#6E40C1 #AF40C1 #C14092
triadic
#AF40C1 #C1AF40 #40C1AF
tetradic
#AF40C1 #C16E40 #52C140 #4092C1
square
#AF40C1 #C16E40 #52C140 #4092C1
split-complementary
#AF40C1 #92C140 #40C16E
monochromatic
#5C2166 #863094 #AF40C1 #C26ED0 #D69CDF

Accessibility & contrast

On white

4.85
#AF40C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#AF40C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF40C1
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF40C1#FFFFFF#000000##FFFFFF
##AF40C11.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1969C5
Deuteranopia (green-blind)
#5076BE
Tritanopia (blue-blind)
#B1567B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af40c1;
/* rgb */ color: rgb(175, 64, 193);
/* oklch */ color: oklch(57.7% 0.210 321.8);
Tailwind
colors: {
  custom: {
    50: '#ca7dd4',
    500: '#af40c1',
    950: '#000000',
  },
}
SCSS
$custom: #af40c1;
$custom-light: #ca7dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#af40c1",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 291.628,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.57686,
    "c": 0.20956,
    "h": 321.8
  },
  "luminance": 0.16631
}

Semantic roles & 50–950 ramp

primary
#AF40C1
secondary
#9ACB92
accent
#DA4D61
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AF40C1

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

Preview Lab → · Contrast checker → · Palette generator →

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