#A5339B#A5339B

#A5339B is a mid, vivid purple. Relative luminance 0.127; OKLCH L 52.8% C 0.189 H 331.7°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#A5339B
RGBrgb(165, 51, 155)
HSLhsl(305, 53%, 42%)
HSVhsv(305, 69%, 65%)
CMYKcmyk(0%, 69.1%, 6.1%, 35.3%)
CIE-LABlab(42.36, 58.28, -32.72)
CIE-LCHlch(42.36, 66.84, 330.69°)
OKLaboklab(52.8% 0.1667 -0.0899)
OKLCHoklch(52.8% 0.189 331.7)
XYZxyz(22.6173, 12.7353, 32.2709)
Luminance0.1273 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5339B #33A53D
analogous
#7633A5 #A5339B #A53362
triadic
#A5339B #9BA533 #339BA5
tetradic
#A5339B #A57633 #33A53D #3362A5
square
#A5339B #A57633 #33A53D #3362A5
split-complementary
#A5339B #62A533 #33A576
monochromatic
#481643 #76256F #A5339B #C84DBD #D67CCF

Accessibility & contrast

On white

5.92
#A5339B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#A5339B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A5339B
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5339B#FFFFFF#000000##FFFFFF
##A5339B1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5A9E
Deuteranopia (green-blind)
#566A98
Tritanopia (blue-blind)
#AC3F63
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a5339b;
/* rgb */ color: rgb(165, 51, 155);
/* oklch */ color: oklch(52.8% 0.189 331.7);
Tailwind
colors: {
  custom: {
    50: '#c375b9',
    500: '#a5339b',
    950: '#000000',
  },
}
SCSS
$custom: #a5339b;
$custom-light: #c375b9;
$custom-dark: #000000;
JSON
{
  "hex": "#a5339b",
  "rgb": {
    "r": 165,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 305.263,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.52795,
    "c": 0.18937,
    "h": 331.7
  },
  "luminance": 0.12734
}

Semantic roles & 50–950 ramp

primary
#A5339B
secondary
#75BF7B
accent
#DC584C
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #A5339B

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

Preview Lab → · Contrast checker → · Palette generator →

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