#AF54BA#AF54BA

#AF54BA is a mid, vivid purple. Relative luminance 0.190; OKLCH L 59.7% C 0.175 H 323.2°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#AF54BA
RGBrgb(175, 84, 186)
HSLhsl(294, 43%, 53%)
HSVhsv(294, 55%, 73%)
CMYKcmyk(5.9%, 54.8%, 0%, 27.1%)
CIE-LABlab(50.69, 51.89, -37.81)
CIE-LCHlch(50.69, 64.20, 323.92°)
OKLaboklab(59.67% 0.1399 -0.1046)
OKLCHoklch(59.67% 0.175 323.2)
XYZxyz(29.7116, 19.0013, 48.5474)
Luminance0.1900 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF54BA #5FBA54
analogous
#7C54BA #AF54BA #BA5492
triadic
#AF54BA #BAAF54 #54BAAF
tetradic
#AF54BA #BA7C54 #5FBA54 #5492BA
square
#AF54BA #BA7C54 #5FBA54 #5492BA
split-complementary
#AF54BA #92BA54 #54BA7C
monochromatic
#622A69 #8B3C95 #AF54BA #C380CC #D8ABDD

Accessibility & contrast

On white

4.38
#AF54BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#AF54BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF54BA
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF54BA#FFFFFF#000000##000000
##AF54BA1.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4472BD
Deuteranopia (green-blind)
#627CB7
Tritanopia (blue-blind)
#B2627F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af54ba;
/* rgb */ color: rgb(175, 84, 186);
/* oklch */ color: oklch(59.7% 0.175 323.2);
Tailwind
colors: {
  custom: {
    50: '#c988cf',
    500: '#af54ba',
    950: '#000000',
  },
}
SCSS
$custom: #af54ba;
$custom-light: #c988cf;
$custom-dark: #000000;
JSON
{
  "hex": "#af54ba",
  "rgb": {
    "r": 175,
    "g": 84,
    "b": 186
  },
  "hsl": {
    "h": 293.529,
    "s": 42.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.59669,
    "c": 0.17471,
    "h": 323.2
  },
  "luminance": 0.19
}

Semantic roles & 50–950 ramp

primary
#AF54BA
secondary
#A4CB9F
accent
#D25663
background
#FCF8FC
surface
#F9F0F9
border
#D2CBD2
text
#130C14
muted
#827D82

Preview Lab

Preview with #AF54BA

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

Preview Lab → · Contrast checker → · Palette generator →

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