#AF54CF#AF54CF

#AF54CF is a mid, vivid purple. Relative luminance 0.200; OKLCH L 60.8% C 0.195 H 316.4°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#AF54CF
RGBrgb(175, 84, 207)
HSLhsl(284, 56%, 57%)
HSVhsv(284, 59%, 81%)
CMYKcmyk(15.5%, 59.4%, 0%, 18.8%)
CIE-LABlab(51.79, 56.02, -48.15)
CIE-LCHlch(51.79, 73.87, 319.32°)
OKLaboklab(60.83% 0.1413 -0.1347)
OKLCHoklch(60.83% 0.195 316.4)
XYZxyz(32.1103, 19.9607, 61.1807)
Luminance0.1996 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54CF #74CF54
analogous
#7254CF #AF54CF #CF54B2
triadic
#AF54CF #CFAF54 #54CFAF
tetradic
#AF54CF #CF7254 #74CF54 #54B2CF
square
#AF54CF #CF7254 #74CF54 #54B2CF
split-complementary
#AF54CF #B2CF54 #54CF72
monochromatic
#6B2584 #9232B3 #AF54CF #C584DC #DCB4EA

Accessibility & contrast

On white

4.21
#AF54CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#AF54CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54CF
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54CF#FFFFFF#000000##000000
##AF54CF1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3176D3
Deuteranopia (green-blind)
#557ECC
Tritanopia (blue-blind)
#AD698A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af54cf;
/* rgb */ color: rgb(175, 84, 207);
/* oklch */ color: oklch(60.8% 0.195 316.4);
Tailwind
colors: {
  custom: {
    50: '#ca89de',
    500: '#af54cf',
    950: '#000000',
  },
}
SCSS
$custom: #af54cf;
$custom-light: #ca89de;
$custom-dark: #000000;
JSON
{
  "hex": "#af54cf",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 207
  },
  "hsl": {
    "h": 284.39,
    "s": 56.164,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60834,
    "c": 0.19518,
    "h": 316.4
  },
  "luminance": 0.1996
}

Semantic roles & 50–950 ramp

primary
#AF54CF
secondary
#B3D8A6
accent
#DF4870
background
#FCF8FD
surface
#F9F0FB
border
#D2CBD4
text
#140C15
muted
#827D83

Preview Lab

Preview with #AF54CF

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

Preview Lab → · Contrast checker → · Palette generator →

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