#AF42AF#AF42AF

#AF42AF is a mid, vivid purple. Relative luminance 0.161; OKLCH L 56.9% C 0.191 H 327.7°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#AF42AF
RGBrgb(175, 66, 175)
HSLhsl(300, 45%, 47%)
HSVhsv(300, 62%, 69%)
CMYKcmyk(0%, 62.3%, 0%, 31.4%)
CIE-LABlab(47.11, 58.11, -37.02)
CIE-LCHlch(47.11, 68.90, 327.50°)
OKLaboklab(56.88% 0.1619 -0.1022)
OKLCHoklch(56.88% 0.191 327.7)
XYZxyz(27.3649, 16.1073, 42.2168)
Luminance0.1611 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42AF #42AF42
analogous
#7942AF #AF42AF #AF4279
triadic
#AF42AF #AFAF42 #42AFAF
tetradic
#AF42AF #AF7942 #42AF42 #4279AF
square
#AF42AF #AF7942 #42AF42 #4279AF
split-complementary
#AF42AF #79AF42 #42AF79
monochromatic
#562056 #833183 #AF42AF #C668C6 #D795D7

Accessibility & contrast

On white

4.97
#AF42AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#AF42AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF42AF
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42AF#FFFFFF#000000##FFFFFF
##AF42AF1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3467B2
Deuteranopia (green-blind)
#5C75AC
Tritanopia (blue-blind)
#B45073
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af42af;
/* rgb */ color: rgb(175, 66, 175);
/* oklch */ color: oklch(56.9% 0.191 327.7);
Tailwind
colors: {
  custom: {
    50: '#ca7ec7',
    500: '#af42af',
    950: '#000000',
  },
}
SCSS
$custom: #af42af;
$custom-light: #ca7ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#af42af",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.5688,
    "c": 0.19143,
    "h": 327.7
  },
  "luminance": 0.16106
}

Semantic roles & 50–950 ramp

primary
#AF42AF
secondary
#8AC28A
accent
#D55353
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF42AF

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

Preview Lab → · Contrast checker → · Palette generator →

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