#AF54D2#AF54D2

#AF54D2 is a mid, vivid purple. Relative luminance 0.201; OKLCH L 61.0% C 0.198 H 315.5°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#AF54D2
RGBrgb(175, 84, 210)
HSLhsl(283, 58%, 58%)
HSVhsv(283, 60%, 82%)
CMYKcmyk(16.7%, 60%, 0%, 17.6%)
CIE-LABlab(51.96, 56.64, -49.60)
CIE-LCHlch(51.96, 75.29, 318.79°)
OKLaboklab(61.01% 0.1413 -0.1389)
OKLCHoklch(61.01% 0.198 315.5)
XYZxyz(32.4806, 20.1088, 63.1307)
Luminance0.2011 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54D2 #77D254
analogous
#7054D2 #AF54D2 #D254B6
triadic
#AF54D2 #D2AF54 #54D2AF
tetradic
#AF54D2 #D27054 #77D254 #54B6D2
square
#AF54D2 #D27054 #77D254 #54B6D2
split-complementary
#AF54D2 #B6D254 #54D270
monochromatic
#6C2488 #9331B8 #AF54D2 #C684DF #DCB5EB

Accessibility & contrast

On white

4.18
#AF54D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#AF54D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54D2
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54D2#FFFFFF#000000##000000
##AF54D21.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D76D6
Deuteranopia (green-blind)
#537ECF
Tritanopia (blue-blind)
#AD6A8B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af54d2;
/* rgb */ color: rgb(175, 84, 210);
/* oklch */ color: oklch(61.0% 0.198 315.5);
Tailwind
colors: {
  custom: {
    50: '#ca89e0',
    500: '#af54d2',
    950: '#000000',
  },
}
SCSS
$custom: #af54d2;
$custom-light: #ca89e0;
$custom-dark: #000000;
JSON
{
  "hex": "#af54d2",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 210
  },
  "hsl": {
    "h": 283.333,
    "s": 58.333,
    "l": 57.647
  },
  "oklch": {
    "l": 0.6101,
    "c": 0.19816,
    "h": 315.5
  },
  "luminance": 0.20108
}

Semantic roles & 50–950 ramp

primary
#AF54D2
secondary
#B6DAA8
accent
#E24671
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF54D2

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

Preview Lab → · Contrast checker → · Palette generator →

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