#AF40CB#AF40CB

#AF40CB is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.3% C 0.218 H 318.8°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#AF40CB
RGBrgb(175, 64, 203)
HSLhsl(288, 57%, 52%)
HSVhsv(288, 68%, 80%)
CMYKcmyk(13.8%, 68.5%, 0%, 20.4%)
CIE-LABlab(48.38, 64.04, -51.31)
CIE-LCHlch(48.38, 82.06, 321.30°)
OKLaboklab(58.29% 0.1644 -0.1438)
OKLCHoklch(58.29% 0.218 318.8)
XYZxyz(30.2906, 17.0939, 58.1922)
Luminance0.1709 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF40CB #5CCB40
analogous
#6A40CB #AF40CB #CB40A1
triadic
#AF40CB #CBAF40 #40CBAF
tetradic
#AF40CB #CB6A40 #5CCB40 #40A1CB
square
#AF40CB #CB6A40 #5CCB40 #40A1CB
split-complementary
#AF40CB #A1CB40 #40CB6A
monochromatic
#611F72 #8A2CA2 #AF40CB #C370D8 #D7A0E5

Accessibility & contrast

On white

4.75
#AF40CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#AF40CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF40CB
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF40CB#FFFFFF#000000##FFFFFF
##AF40CB1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af40cb;
/* rgb */ color: rgb(175, 64, 203);
/* oklch */ color: oklch(58.3% 0.218 318.8);
Tailwind
colors: {
  custom: {
    50: '#cb7edb',
    500: '#af40cb',
    950: '#000000',
  },
}
SCSS
$custom: #af40cb;
$custom-light: #cb7edb;
$custom-dark: #000000;
JSON
{
  "hex": "#af40cb",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 287.914,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.58293,
    "c": 0.21837,
    "h": 318.8
  },
  "luminance": 0.17093
}

Semantic roles & 50–950 ramp

primary
#AF40CB
secondary
#A1D295
accent
#E04766
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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