#AF42CB#AF42CB

#AF42CB is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.5% C 0.216 H 318.7°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#AF42CB
RGBrgb(175, 66, 203)
HSLhsl(288, 57%, 53%)
HSVhsv(288, 67%, 80%)
CMYKcmyk(13.8%, 67.5%, 0%, 20.4%)
CIE-LABlab(48.67, 63.23, -50.85)
CIE-LCHlch(48.67, 81.14, 321.19°)
OKLaboklab(58.5% 0.1622 -0.1424)
OKLCHoklch(58.5% 0.216 318.7)
XYZxyz(30.4055, 17.3236, 58.2305)
Luminance0.1732 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42CB #5ECB42
analogous
#6A42CB #AF42CB #CB42A3
triadic
#AF42CB #CBAF42 #42CBAF
tetradic
#AF42CB #CB6A42 #5ECB42 #42A3CB
square
#AF42CB #CB6A42 #5ECB42 #42A3CB
split-complementary
#AF42CB #A3CB42 #42CB6A
monochromatic
#622073 #8B2DA3 #AF42CB #C372D8 #D8A2E5

Accessibility & contrast

On white

4.70
#AF42CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#AF42CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF42CB
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42CB#FFFFFF#000000##FFFFFF
##AF42CB1.004.704.464.70
#FFFFFF4.701.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#016CCF
Deuteranopia (green-blind)
#4A77C8
Tritanopia (blue-blind)
#AF5B81
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af42cb;
/* rgb */ color: rgb(175, 66, 203);
/* oklch */ color: oklch(58.5% 0.216 318.7);
Tailwind
colors: {
  custom: {
    50: '#ca7fdb',
    500: '#af42cb',
    950: '#000000',
  },
}
SCSS
$custom: #af42cb;
$custom-light: #ca7fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#af42cb",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 287.737,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.58499,
    "c": 0.21589,
    "h": 318.7
  },
  "luminance": 0.17322
}

Semantic roles & 50–950 ramp

primary
#AF42CB
secondary
#A3D297
accent
#E04867
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF42CB

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

Preview Lab → · Contrast checker → · Palette generator →

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