#AF54BE#AF54BE

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

Color values

HEX#AF54BE
RGBrgb(175, 84, 190)
HSLhsl(292, 45%, 54%)
HSVhsv(292, 56%, 75%)
CMYKcmyk(7.9%, 55.8%, 0%, 25.5%)
CIE-LABlab(50.89, 52.65, -39.81)
CIE-LCHlch(50.89, 66.01, 322.91°)
OKLaboklab(59.88% 0.1403 -0.1104)
OKLCHoklch(59.88% 0.179 321.8)
XYZxyz(30.1428, 19.1737, 50.8184)
Luminance0.1917 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54BE #63BE54
analogous
#7A54BE #AF54BE #BE5498
triadic
#AF54BE #BEAF54 #54BEAF
tetradic
#AF54BE #BE7A54 #63BE54 #5498BE
square
#AF54BE #BE7A54 #63BE54 #5498BE
split-complementary
#AF54BE #98BE54 #54BE7A
monochromatic
#642A6E #8D3B9A #AF54BE #C480CF #D8ADE0

Accessibility & contrast

On white

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

On black

4.83
#AF54BE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54BE
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54BE#FFFFFF#000000##000000
##AF54BE1.004.344.834.83
#FFFFFF4.341.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4173C1
Deuteranopia (green-blind)
#607DBB
Tritanopia (blue-blind)
#B16381
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af54be;
/* rgb */ color: rgb(175, 84, 190);
/* oklch */ color: oklch(59.9% 0.179 321.8);
Tailwind
colors: {
  custom: {
    50: '#c988d2',
    500: '#af54be',
    950: '#000000',
  },
}
SCSS
$custom: #af54be;
$custom-light: #c988d2;
$custom-dark: #000000;
JSON
{
  "hex": "#af54be",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 190
  },
  "hsl": {
    "h": 291.509,
    "s": 44.915,
    "l": 53.725
  },
  "oklch": {
    "l": 0.59882,
    "c": 0.17853,
    "h": 321.8
  },
  "luminance": 0.19172
}

Semantic roles & 50–950 ramp

primary
#AF54BE
secondary
#A7CEA0
accent
#D55366
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AF54BE

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

Preview Lab → · Contrast checker → · Palette generator →

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