#AF47BA#AF47BA

#AF47BA is a mid, vivid purple. Relative luminance 0.172; OKLCH L 58.1% C 0.194 H 323.8°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#AF47BA
RGBrgb(175, 71, 186)
HSLhsl(294, 45%, 50%)
HSVhsv(294, 62%, 73%)
CMYKcmyk(5.9%, 61.8%, 0%, 27.1%)
CIE-LABlab(48.47, 57.92, -41.31)
CIE-LCHlch(48.47, 71.15, 324.50°)
OKLaboklab(58.05% 0.1565 -0.1147)
OKLCHoklch(58.05% 0.194 323.8)
XYZxyz(28.7946, 17.1672, 48.2418)
Luminance0.1717 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF47BA #52BA47
analogous
#7547BA #AF47BA #BA478B
triadic
#AF47BA #BAAF47 #47BAAF
tetradic
#AF47BA #BA7547 #52BA47 #478BBA
square
#AF47BA #BA7547 #52BA47 #478BBA
split-complementary
#AF47BA #8BBA47 #47BA75
monochromatic
#5C2562 #86358E #AF47BA #C274CB #D6A0DB

Accessibility & contrast

On white

4.74
#AF47BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#AF47BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF47BA
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF47BA#FFFFFF#000000##FFFFFF
##AF47BA1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#316BBD
Deuteranopia (green-blind)
#5977B7
Tritanopia (blue-blind)
#B2587A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af47ba;
/* rgb */ color: rgb(175, 71, 186);
/* oklch */ color: oklch(58.1% 0.194 323.8);
Tailwind
colors: {
  custom: {
    50: '#ca81cf',
    500: '#af47ba',
    950: '#000000',
  },
}
SCSS
$custom: #af47ba;
$custom-light: #ca81cf;
$custom-dark: #000000;
JSON
{
  "hex": "#af47ba",
  "rgb": {
    "r": 175,
    "g": 71,
    "b": 186
  },
  "hsl": {
    "h": 294.261,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5805,
    "c": 0.19403,
    "h": 323.8
  },
  "luminance": 0.17166
}

Semantic roles & 50–950 ramp

primary
#AF47BA
secondary
#9AC895
accent
#D5535F
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #AF47BA

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

Preview Lab → · Contrast checker → · Palette generator →

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