#AF40C5#AF40C5

#AF40C5 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 57.9% C 0.213 H 320.6°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#AF40C5
RGBrgb(175, 64, 197)
HSLhsl(290, 53%, 51%)
HSVhsv(290, 68%, 77%)
CMYKcmyk(11.2%, 67.5%, 0%, 22.7%)
CIE-LABlab(48.02, 62.91, -48.41)
CIE-LCHlch(48.02, 79.38, 322.42°)
OKLaboklab(57.93% 0.1646 -0.1353)
OKLCHoklch(57.93% 0.213 320.6)
XYZxyz(29.5894, 16.8135, 54.4992)
Luminance0.1681 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF40C5 #56C540
analogous
#6C40C5 #AF40C5 #C54098
triadic
#AF40C5 #C5AF40 #40C5AF
tetradic
#AF40C5 #C56C40 #56C540 #4098C5
square
#AF40C5 #C56C40 #56C540 #4098C5
split-complementary
#AF40C5 #98C540 #40C56C
monochromatic
#5E206A #882F99 #AF40C5 #C36FD3 #D69EE2

Accessibility & contrast

On white

4.81
#AF40C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#AF40C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF40C5
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF40C5#FFFFFF#000000##FFFFFF
##AF40C51.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F6AC9
Deuteranopia (green-blind)
#4D76C2
Tritanopia (blue-blind)
#B0587E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af40c5;
/* rgb */ color: rgb(175, 64, 197);
/* oklch */ color: oklch(57.9% 0.213 320.6);
Tailwind
colors: {
  custom: {
    50: '#ca7ed7',
    500: '#af40c5',
    950: '#000000',
  },
}
SCSS
$custom: #af40c5;
$custom-light: #ca7ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#af40c5",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 290.075,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.57926,
    "c": 0.21307,
    "h": 320.6
  },
  "luminance": 0.16812
}

Semantic roles & 50–950 ramp

primary
#AF40C5
secondary
#9DCE93
accent
#DD4B63
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AF40C5

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

Preview Lab → · Contrast checker → · Palette generator →

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