#AF47B2#AF47B2

#AF47B2 is a mid, vivid purple. Relative luminance 0.168; OKLCH L 57.6% C 0.187 H 326.5°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#AF47B2
RGBrgb(175, 71, 178)
HSLhsl(298, 43%, 49%)
HSVhsv(298, 60%, 70%)
CMYKcmyk(1.7%, 60.1%, 0%, 30.2%)
CIE-LABlab(48.05, 56.47, -37.30)
CIE-LCHlch(48.05, 67.68, 326.56°)
OKLaboklab(57.61% 0.156 -0.1031)
OKLCHoklch(57.61% 0.187 326.5)
XYZxyz(27.9678, 16.8365, 43.8875)
Luminance0.1683 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47B2 #4AB247
analogous
#7A47B2 #AF47B2 #B24780
triadic
#AF47B2 #B2AF47 #47B2AF
tetradic
#AF47B2 #B27A47 #4AB247 #4780B2
square
#AF47B2 #B27A47 #4AB247 #4780B2
split-complementary
#AF47B2 #80B247 #47B27A
monochromatic
#59245B #843686 #AF47B2 #C470C6 #D69CD7

Accessibility & contrast

On white

4.81
#AF47B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#AF47B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF47B2
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47B2#FFFFFF#000000##FFFFFF
##AF47B21.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#396AB5
Deuteranopia (green-blind)
#5D77AF
Tritanopia (blue-blind)
#B45576
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af47b2;
/* rgb */ color: rgb(175, 71, 178);
/* oklch */ color: oklch(57.6% 0.187 326.5);
Tailwind
colors: {
  custom: {
    50: '#ca81c9',
    500: '#af47b2',
    950: '#000000',
  },
}
SCSS
$custom: #af47b2;
$custom-light: #ca81c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af47b2",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 178
  },
  "hsl": {
    "h": 298.318,
    "s": 42.972,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57612,
    "c": 0.18697,
    "h": 326.5
  },
  "luminance": 0.16835
}

Semantic roles & 50–950 ramp

primary
#AF47B2
secondary
#92C491
accent
#D35559
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #AF47B2

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

Preview Lab → · Contrast checker → · Palette generator →

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