#AF54C2#AF54C2

#AF54C2 is a mid, vivid purple. Relative luminance 0.194; OKLCH L 60.1% C 0.182 H 320.4°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AF54C2
RGBrgb(175, 84, 194)
HSLhsl(290, 47%, 55%)
HSVhsv(290, 57%, 76%)
CMYKcmyk(9.8%, 56.7%, 0%, 23.9%)
CIE-LABlab(51.10, 53.43, -41.80)
CIE-LCHlch(51.10, 67.84, 321.97°)
OKLaboklab(60.1% 0.1406 -0.1162)
OKLCHoklch(60.1% 0.182 320.4)
XYZxyz(30.5860, 19.3510, 53.1525)
Luminance0.1935 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54C2 #67C254
analogous
#7854C2 #AF54C2 #C2549E
triadic
#AF54C2 #C2AF54 #54C2AF
tetradic
#AF54C2 #C27854 #67C254 #549EC2
square
#AF54C2 #C27854 #67C254 #549EC2
split-complementary
#AF54C2 #9EC254 #54C278
monochromatic
#662973 #8E39A0 #AF54C2 #C481D2 #D9AEE2

Accessibility & contrast

On white

4.31
#AF54C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#AF54C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54C2
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54C2#FFFFFF#000000##000000
##AF54C21.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E73C6
Deuteranopia (green-blind)
#5E7DBF
Tritanopia (blue-blind)
#B06483
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af54c2;
/* rgb */ color: rgb(175, 84, 194);
/* oklch */ color: oklch(60.1% 0.182 320.4);
Tailwind
colors: {
  custom: {
    50: '#c989d5',
    500: '#af54c2',
    950: '#000000',
  },
}
SCSS
$custom: #af54c2;
$custom-light: #c989d5;
$custom-dark: #000000;
JSON
{
  "hex": "#af54c2",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 194
  },
  "hsl": {
    "h": 289.636,
    "s": 47.414,
    "l": 54.51
  },
  "oklch": {
    "l": 0.60099,
    "c": 0.1824,
    "h": 320.4
  },
  "luminance": 0.1935
}

Semantic roles & 50–950 ramp

primary
#AF54C2
secondary
#AAD0A2
accent
#D75168
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#130C14
muted
#827D83

Preview Lab

Preview with #AF54C2

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

Preview Lab → · Contrast checker → · Palette generator →

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