#AF40C4#AF40C4

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

Color values

HEX#AF40C4
RGBrgb(175, 64, 196)
HSLhsl(290, 53%, 51%)
HSVhsv(290, 67%, 77%)
CMYKcmyk(10.7%, 67.3%, 0%, 23.1%)
CIE-LABlab(47.97, 62.72, -47.92)
CIE-LCHlch(47.97, 78.93, 322.62°)
OKLaboklab(57.87% 0.1646 -0.1339)
OKLCHoklch(57.87% 0.212 320.9)
XYZxyz(29.4752, 16.7678, 53.8978)
Luminance0.1677 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF40C4 #55C440
analogous
#6D40C4 #AF40C4 #C44097
triadic
#AF40C4 #C4AF40 #40C4AF
tetradic
#AF40C4 #C46D40 #55C440 #4097C4
square
#AF40C4 #C46D40 #55C440 #4097C4
split-complementary
#AF40C4 #97C440 #40C46D
monochromatic
#5E2069 #872F98 #AF40C4 #C36FD2 #D69EE1

Accessibility & contrast

On white

4.82
#AF40C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#AF40C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF40C4
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF40C4#FFFFFF#000000##FFFFFF
##AF40C41.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#126AC8
Deuteranopia (green-blind)
#4E76C1
Tritanopia (blue-blind)
#B0577D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af40c4;
/* rgb */ color: rgb(175, 64, 196);
/* oklch */ color: oklch(57.9% 0.212 320.9);
Tailwind
colors: {
  custom: {
    50: '#ca7ed6',
    500: '#af40c4',
    950: '#000000',
  },
}
SCSS
$custom: #af40c4;
$custom-light: #ca7ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#af40c4",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 290.455,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.57865,
    "c": 0.21219,
    "h": 320.9
  },
  "luminance": 0.16766
}

Semantic roles & 50–950 ramp

primary
#AF40C4
secondary
#9CCD93
accent
#DC4C63
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AF40C4

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

Preview Lab → · Contrast checker → · Palette generator →

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