#AF54BF#AF54BF

#AF54BF is a mid, vivid purple. Relative luminance 0.192; OKLCH L 59.9% C 0.179 H 321.5°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AF54BF
RGBrgb(175, 84, 191)
HSLhsl(291, 46%, 54%)
HSVhsv(291, 56%, 75%)
CMYKcmyk(8.4%, 56%, 0%, 25.1%)
CIE-LABlab(50.94, 52.85, -40.31)
CIE-LCHlch(50.94, 66.46, 322.67°)
OKLaboklab(59.94% 0.1404 -0.1119)
OKLCHoklch(59.94% 0.18 321.5)
XYZxyz(30.2524, 19.2176, 51.3960)
Luminance0.1922 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54BF #64BF54
analogous
#7A54BF #AF54BF #BF549A
triadic
#AF54BF #BFAF54 #54BFAF
tetradic
#AF54BF #BF7A54 #64BF54 #549ABF
square
#AF54BF #BF7A54 #64BF54 #549ABF
split-complementary
#AF54BF #9ABF54 #54BF7A
monochromatic
#652A6F #8D3A9C #AF54BF #C481D0 #D9ADE0

Accessibility & contrast

On white

4.34
#AF54BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#AF54BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54BF
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54BF#FFFFFF#000000##000000
##AF54BF1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4073C2
Deuteranopia (green-blind)
#5F7DBC
Tritanopia (blue-blind)
#B16382
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af54bf;
/* rgb */ color: rgb(175, 84, 191);
/* oklch */ color: oklch(59.9% 0.179 321.5);
Tailwind
colors: {
  custom: {
    50: '#c988d3',
    500: '#af54bf',
    950: '#000000',
  },
}
SCSS
$custom: #af54bf;
$custom-light: #c988d3;
$custom-dark: #000000;
JSON
{
  "hex": "#af54bf",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 191
  },
  "hsl": {
    "h": 291.028,
    "s": 45.532,
    "l": 53.922
  },
  "oklch": {
    "l": 0.59936,
    "c": 0.1795,
    "h": 321.5
  },
  "luminance": 0.19216
}

Semantic roles & 50–950 ramp

primary
#AF54BF
secondary
#A7CEA1
accent
#D55366
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#130C14
muted
#827D83

Preview Lab

Preview with #AF54BF

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

Preview Lab → · Contrast checker → · Palette generator →

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