#AF54B2#AF54B2

#AF54B2 is a mid, vivid purple. Relative luminance 0.187; OKLCH L 59.3% C 0.167 H 326.2°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#AF54B2
RGBrgb(175, 84, 178)
HSLhsl(298, 38%, 51%)
HSVhsv(298, 53%, 70%)
CMYKcmyk(1.7%, 52.8%, 0%, 30.2%)
CIE-LABlab(50.30, 50.39, -33.77)
CIE-LCHlch(50.30, 60.66, 326.17°)
OKLaboklab(59.26% 0.139 -0.093)
OKLCHoklch(59.26% 0.167 326.2)
XYZxyz(28.8848, 18.6705, 44.1932)
Luminance0.1867 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54B2 #57B254
analogous
#8054B2 #AF54B2 #B25486
triadic
#AF54B2 #B2AF54 #54B2AF
tetradic
#AF54B2 #B28054 #57B254 #5486B2
square
#AF54B2 #B28054 #57B254 #5486B2
split-complementary
#AF54B2 #86B254 #54B280
monochromatic
#5F2B60 #883E8A #AF54B2 #C37EC5 #D6A8D8

Accessibility & contrast

On white

4.44
#AF54B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#AF54B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54B2
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54B2#FFFFFF#000000##000000
##AF54B21.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4970B5
Deuteranopia (green-blind)
#667CAF
Tritanopia (blue-blind)
#B35F7B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af54b2;
/* rgb */ color: rgb(175, 84, 178);
/* oklch */ color: oklch(59.3% 0.167 326.2);
Tailwind
colors: {
  custom: {
    50: '#c988c9',
    500: '#af54b2',
    950: '#000000',
  },
}
SCSS
$custom: #af54b2;
$custom-light: #c988c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af54b2",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 178
  },
  "hsl": {
    "h": 298.085,
    "s": 37.903,
    "l": 51.373
  },
  "oklch": {
    "l": 0.59256,
    "c": 0.16719,
    "h": 326.2
  },
  "luminance": 0.18669
}

Semantic roles & 50–950 ramp

primary
#AF54B2
secondary
#9EC69C
accent
#CE5A5E
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#130C13
muted
#827D82

Preview Lab

Preview with #AF54B2

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

Preview Lab → · Contrast checker → · Palette generator →

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