#AF54D3#AF54D3

#AF54D3 is a mid, vivid purple. Relative luminance 0.202; OKLCH L 61.1% C 0.199 H 315.2°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AF54D3
RGBrgb(175, 84, 211)
HSLhsl(283, 59%, 58%)
HSVhsv(283, 60%, 83%)
CMYKcmyk(17.1%, 60.2%, 0%, 17.3%)
CIE-LABlab(52.02, 56.84, -50.08)
CIE-LCHlch(52.02, 75.76, 318.62°)
OKLaboklab(61.07% 0.1413 -0.1403)
OKLCHoklch(61.07% 0.199 315.2)
XYZxyz(32.6055, 20.1588, 63.7889)
Luminance0.2016 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54D3 #78D354
analogous
#6F54D3 #AF54D3 #D354B8
triadic
#AF54D3 #D3AF54 #54D3AF
tetradic
#AF54D3 #D36F54 #78D354 #54B8D3
square
#AF54D3 #D36F54 #78D354 #54B8D3
split-complementary
#AF54D3 #B8D354 #54D36F
monochromatic
#6C2389 #9330BA #AF54D3 #C685E0 #DDB5EC

Accessibility & contrast

On white

4.17
#AF54D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#AF54D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54D3
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54D3#FFFFFF#000000##000000
##AF54D31.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C77D7
Deuteranopia (green-blind)
#527FD0
Tritanopia (blue-blind)
#AC6A8C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af54d3;
/* rgb */ color: rgb(175, 84, 211);
/* oklch */ color: oklch(61.1% 0.199 315.2);
Tailwind
colors: {
  custom: {
    50: '#ca89e1',
    500: '#af54d3',
    950: '#000000',
  },
}
SCSS
$custom: #af54d3;
$custom-light: #ca89e1;
$custom-dark: #000000;
JSON
{
  "hex": "#af54d3",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 211
  },
  "hsl": {
    "h": 282.992,
    "s": 59.07,
    "l": 57.843
  },
  "oklch": {
    "l": 0.61069,
    "c": 0.19917,
    "h": 315.2
  },
  "luminance": 0.20158
}

Semantic roles & 50–950 ramp

primary
#AF54D3
secondary
#B6DBA8
accent
#E24672
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF54D3

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

Preview Lab → · Contrast checker → · Palette generator →

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