#AF40CC#AF40CC

#AF40CC is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.4% C 0.219 H 318.5°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#AF40CC
RGBrgb(175, 64, 204)
HSLhsl(288, 58%, 53%)
HSVhsv(288, 69%, 80%)
CMYKcmyk(14.2%, 68.6%, 0%, 20%)
CIE-LABlab(48.44, 64.23, -51.79)
CIE-LCHlch(48.44, 82.50, 321.12°)
OKLaboklab(58.36% 0.1643 -0.1452)
OKLCHoklch(58.36% 0.219 318.5)
XYZxyz(30.4102, 17.1418, 58.8219)
Luminance0.1714 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF40CC #5DCC40
analogous
#6940CC #AF40CC #CC40A3
triadic
#AF40CC #CCAF40 #40CCAF
tetradic
#AF40CC #CC6940 #5DCC40 #40A3CC
square
#AF40CC #CC6940 #5DCC40 #40A3CC
split-complementary
#AF40CC #A3CC40 #40CC69
monochromatic
#611F73 #8A2CA3 #AF40CC #C370D9 #D7A1E6

Accessibility & contrast

On white

4.74
#AF40CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#AF40CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF40CC
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF40CC#FFFFFF#000000##FFFFFF
##AF40CC1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#4877C9
Tritanopia (blue-blind)
#AF5A81
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af40cc;
/* rgb */ color: rgb(175, 64, 204);
/* oklch */ color: oklch(58.4% 0.219 318.5);
Tailwind
colors: {
  custom: {
    50: '#cb7edc',
    500: '#af40cc',
    950: '#000000',
  },
}
SCSS
$custom: #af40cc;
$custom-light: #cb7edc;
$custom-dark: #000000;
JSON
{
  "hex": "#af40cc",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 287.571,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.58356,
    "c": 0.21925,
    "h": 318.5
  },
  "luminance": 0.1714
}

Semantic roles & 50–950 ramp

primary
#AF40CC
secondary
#A2D295
accent
#E14767
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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