#AF42CA#AF42CA

#AF42CA is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.4% C 0.215 H 319.0°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#AF42CA
RGBrgb(175, 66, 202)
HSLhsl(288, 56%, 53%)
HSVhsv(288, 67%, 79%)
CMYKcmyk(13.4%, 67.3%, 0%, 20.8%)
CIE-LABlab(48.61, 63.04, -50.37)
CIE-LCHlch(48.61, 80.69, 321.38°)
OKLaboklab(58.44% 0.1623 -0.141)
OKLCHoklch(58.44% 0.215 319)
XYZxyz(30.2867, 17.2760, 57.6049)
Luminance0.1727 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42CA #5DCA42
analogous
#6B42CA #AF42CA #CA42A1
triadic
#AF42CA #CAAF42 #42CAAF
tetradic
#AF42CA #CA6B42 #5DCA42 #42A1CA
square
#AF42CA #CA6B42 #5DCA42 #42A1CA
split-complementary
#AF42CA #A1CA42 #42CA6B
monochromatic
#612072 #8A2DA2 #AF42CA #C372D7 #D7A2E5

Accessibility & contrast

On white

4.71
#AF42CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF42CA
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42CA#FFFFFF#000000##FFFFFF
##AF42CA1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#056CCE
Deuteranopia (green-blind)
#4B77C7
Tritanopia (blue-blind)
#AF5B81
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af42ca;
/* rgb */ color: rgb(175, 66, 202);
/* oklch */ color: oklch(58.4% 0.215 319.0);
Tailwind
colors: {
  custom: {
    50: '#ca7fdb',
    500: '#af42ca',
    950: '#000000',
  },
}
SCSS
$custom: #af42ca;
$custom-light: #ca7fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#af42ca",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 288.088,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.58438,
    "c": 0.215,
    "h": 319
  },
  "luminance": 0.17275
}

Semantic roles & 50–950 ramp

primary
#AF42CA
secondary
#A2D196
accent
#DF4866
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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