#AF47AF#AF47AF

#AF47AF is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.5% C 0.184 H 327.6°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AF47AF
RGBrgb(175, 71, 175)
HSLhsl(300, 42%, 48%)
HSVhsv(300, 59%, 69%)
CMYKcmyk(0%, 59.4%, 0%, 31.4%)
CIE-LABlab(47.90, 55.94, -35.78)
CIE-LCHlch(47.90, 66.40, 327.40°)
OKLaboklab(57.45% 0.1558 -0.0987)
OKLCHoklch(57.45% 0.184 327.6)
XYZxyz(27.6699, 16.7173, 42.3185)
Luminance0.1672 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47AF #47AF47
analogous
#7B47AF #AF47AF #AF477B
triadic
#AF47AF #AFAF47 #47AFAF
tetradic
#AF47AF #AF7B47 #47AF47 #477BAF
square
#AF47AF #AF7B47 #47AF47 #477BAF
split-complementary
#AF47AF #7BAF47 #47AF7B
monochromatic
#582458 #833583 #AF47AF #C46FC4 #D69AD6

Accessibility & contrast

On white

4.84
#AF47AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#AF47AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF47AF
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47AF#FFFFFF#000000##FFFFFF
##AF47AF1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B69B2
Deuteranopia (green-blind)
#5F76AC
Tritanopia (blue-blind)
#B45474
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af47af;
/* rgb */ color: rgb(175, 71, 175);
/* oklch */ color: oklch(57.5% 0.184 327.6);
Tailwind
colors: {
  custom: {
    50: '#ca81c7',
    500: '#af47af',
    950: '#000000',
  },
}
SCSS
$custom: #af47af;
$custom-light: #ca81c7;
$custom-dark: #000000;
JSON
{
  "hex": "#af47af",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 42.276,
    "l": 48.235
  },
  "oklch": {
    "l": 0.57452,
    "c": 0.18437,
    "h": 327.6
  },
  "luminance": 0.16716
}

Semantic roles & 50–950 ramp

primary
#AF47AF
secondary
#8FC28F
accent
#D25656
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #AF47AF

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

Preview Lab → · Contrast checker → · Palette generator →

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