#AF40CA#AF40CA

#AF40CA is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.2% C 0.217 H 319.1°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#AF40CA
RGBrgb(175, 64, 202)
HSLhsl(288, 57%, 52%)
HSVhsv(288, 68%, 79%)
CMYKcmyk(13.4%, 68.3%, 0%, 20.8%)
CIE-LABlab(48.32, 63.85, -50.83)
CIE-LCHlch(48.32, 81.61, 321.48°)
OKLaboklab(58.23% 0.1644 -0.1424)
OKLCHoklch(58.23% 0.217 319.1)
XYZxyz(30.1719, 17.0464, 57.5667)
Luminance0.1704 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF40CA #5BCA40
analogous
#6A40CA #AF40CA #CA40A0
triadic
#AF40CA #CAAF40 #40CAAF
tetradic
#AF40CA #CA6A40 #5BCA40 #40A0CA
square
#AF40CA #CA6A40 #5BCA40 #40A0CA
split-complementary
#AF40CA #A0CA40 #40CA6A
monochromatic
#611F70 #8A2CA0 #AF40CA #C370D7 #D7A0E5

Accessibility & contrast

On white

4.76
#AF40CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#AF40CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF40CA
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF40CA#FFFFFF#000000##FFFFFF
##AF40CA1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCE
Deuteranopia (green-blind)
#4976C7
Tritanopia (blue-blind)
#AF5A80
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af40ca;
/* rgb */ color: rgb(175, 64, 202);
/* oklch */ color: oklch(58.2% 0.217 319.1);
Tailwind
colors: {
  custom: {
    50: '#cb7edb',
    500: '#af40ca',
    950: '#000000',
  },
}
SCSS
$custom: #af40ca;
$custom-light: #cb7edb;
$custom-dark: #000000;
JSON
{
  "hex": "#af40ca",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 288.261,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.58232,
    "c": 0.21748,
    "h": 319.1
  },
  "luminance": 0.17045
}

Semantic roles & 50–950 ramp

primary
#AF40CA
secondary
#A1D195
accent
#E04866
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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