#AF54C8#AF54C8

#AF54C8 is a mid, vivid purple. Relative luminance 0.196; OKLCH L 60.4% C 0.188 H 318.5°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#AF54C8
RGBrgb(175, 84, 200)
HSLhsl(287, 51%, 56%)
HSVhsv(287, 58%, 78%)
CMYKcmyk(12.5%, 58%, 0%, 21.6%)
CIE-LABlab(51.41, 54.61, -44.75)
CIE-LCHlch(51.41, 70.61, 320.67°)
OKLaboklab(60.43% 0.141 -0.1248)
OKLCHoklch(60.43% 0.188 318.5)
XYZxyz(31.2734, 19.6260, 56.7732)
Luminance0.1963 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54C8 #6DC854
analogous
#7554C8 #AF54C8 #C854A7
triadic
#AF54C8 #C8AF54 #54C8AF
tetradic
#AF54C8 #C87554 #6DC854 #54A7C8
square
#AF54C8 #C87554 #6DC854 #54A7C8
split-complementary
#AF54C8 #A7C854 #54C875
monochromatic
#68277A #9036A9 #AF54C8 #C582D7 #DAB1E6

Accessibility & contrast

On white

4.26
#AF54C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#AF54C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54C8
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54C8#FFFFFF#000000##000000
##AF54C81.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3974CC
Deuteranopia (green-blind)
#5A7EC5
Tritanopia (blue-blind)
#AF6686
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #af54c8;
/* rgb */ color: rgb(175, 84, 200);
/* oklch */ color: oklch(60.4% 0.188 318.5);
Tailwind
colors: {
  custom: {
    50: '#ca89d9',
    500: '#af54c8',
    950: '#000000',
  },
}
SCSS
$custom: #af54c8;
$custom-light: #ca89d9;
$custom-dark: #000000;
JSON
{
  "hex": "#af54c8",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 200
  },
  "hsl": {
    "h": 287.069,
    "s": 51.327,
    "l": 55.686
  },
  "oklch": {
    "l": 0.60433,
    "c": 0.18826,
    "h": 318.5
  },
  "luminance": 0.19625
}

Semantic roles & 50–950 ramp

primary
#AF54C8
secondary
#AED4A4
accent
#DB4D6C
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF54C8

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

Preview Lab → · Contrast checker → · Palette generator →

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