#81339B#81339B

#81339B is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.6% C 0.171 H 316.6°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#81339B
RGBrgb(129, 51, 155)
HSLhsl(285, 50%, 40%)
HSVhsv(285, 67%, 61%)
CMYKcmyk(16.8%, 67.1%, 0%, 39.2%)
CIE-LABlab(36.75, 49.59, -41.98)
CIE-LCHlch(36.75, 64.98, 319.75°)
OKLaboklab(47.63% 0.1244 -0.1178)
OKLCHoklch(47.63% 0.171 316.6)
XYZxyz(16.1526, 9.4020, 31.9679)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81339B #4D9B33
analogous
#4D339B #81339B #9B3381
triadic
#81339B #9B8133 #339B81
tetradic
#81339B #9B4D33 #4D9B33 #33819B
square
#81339B #9B4D33 #4D9B33 #33819B
split-complementary
#81339B #819B33 #339B4D
monochromatic
#34153F #5B246D #81339B #A448C3 #BB76D2

Accessibility & contrast

On white

7.29
#81339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#81339B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #81339B
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81339B#FFFFFF#000000##FFFFFF
##81339B1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04529E
Deuteranopia (green-blind)
#345999
Tritanopia (blue-blind)
#804663
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #81339b;
/* rgb */ color: rgb(129, 51, 155);
/* oklch */ color: oklch(47.6% 0.171 316.6);
Tailwind
colors: {
  custom: {
    50: '#a971b9',
    500: '#81339b',
    950: '#000000',
  },
}
SCSS
$custom: #81339b;
$custom-light: #a971b9;
$custom-dark: #000000;
JSON
{
  "hex": "#81339b",
  "rgb": {
    "r": 129,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 285,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47626,
    "c": 0.17135,
    "h": 316.6
  },
  "luminance": 0.09401
}

Semantic roles & 50–950 ramp

primary
#81339B
secondary
#82BA6F
accent
#DA4E71
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #81339B

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

Preview Lab → · Contrast checker → · Palette generator →

#81339B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva