#AF42C2#AF42C2

#AF42C2 is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.0% C 0.208 H 321.4°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#AF42C2
RGBrgb(175, 66, 194)
HSLhsl(291, 51%, 51%)
HSVhsv(291, 66%, 76%)
CMYKcmyk(9.8%, 66%, 0%, 23.9%)
CIE-LABlab(48.14, 61.53, -46.48)
CIE-LCHlch(48.14, 77.12, 322.93°)
OKLaboklab(57.96% 0.1625 -0.1297)
OKLCHoklch(57.96% 0.208 321.4)
XYZxyz(29.3639, 16.9069, 52.7451)
Luminance0.1691 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42C2 #55C242
analogous
#6F42C2 #AF42C2 #C24295
triadic
#AF42C2 #C2AF42 #42C2AF
tetradic
#AF42C2 #C26F42 #55C242 #4295C2
square
#AF42C2 #C26F42 #55C242 #4295C2
split-complementary
#AF42C2 #95C242 #42C26F
monochromatic
#5E2268 #873196 #AF42C2 #C370D1 #D69FE0

Accessibility & contrast

On white

4.79
#AF42C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#AF42C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF42C2
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42C2#FFFFFF#000000##FFFFFF
##AF42C21.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D6AC6
Deuteranopia (green-blind)
#5176BF
Tritanopia (blue-blind)
#B1587D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af42c2;
/* rgb */ color: rgb(175, 66, 194);
/* oklch */ color: oklch(58.0% 0.208 321.4);
Tailwind
colors: {
  custom: {
    50: '#ca7ed5',
    500: '#af42c2',
    950: '#000000',
  },
}
SCSS
$custom: #af42c2;
$custom-light: #ca7ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#af42c2",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 291.094,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.57955,
    "c": 0.20788,
    "h": 321.4
  },
  "luminance": 0.16905
}

Semantic roles & 50–950 ramp

primary
#AF42C2
secondary
#9CCC94
accent
#DB4D62
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #AF42C2

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

Preview Lab → · Contrast checker → · Palette generator →

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