#8A339B#8A339B

#8A339B is a mid, vivid purple. Relative luminance 0.101; OKLCH L 48.9% C 0.175 H 320.7°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#8A339B
RGBrgb(138, 51, 155)
HSLhsl(290, 50%, 40%)
HSVhsv(290, 67%, 61%)
CMYKcmyk(11%, 67.1%, 0%, 39.2%)
CIE-LABlab(38.09, 51.74, -39.76)
CIE-LCHlch(38.09, 65.25, 322.46°)
OKLaboklab(48.87% 0.1357 -0.111)
OKLCHoklch(48.87% 0.175 320.7)
XYZxyz(17.5808, 10.1384, 32.0348)
Luminance0.1014 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A339B #449B33
analogous
#56339B #8A339B #9B3378
triadic
#8A339B #9B8A33 #339B8A
tetradic
#8A339B #9B5633 #449B33 #33789B
square
#8A339B #9B5633 #449B33 #33789B
split-complementary
#8A339B #789B33 #339B56
monochromatic
#38153F #61246D #8A339B #AF48C3 #C376D2

Accessibility & contrast

On white

6.94
#8A339B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8A339B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A339B
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A339B#FFFFFF#000000##FFFFFF
##8A339B1.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13549E
Deuteranopia (green-blind)
#3D5D98
Tritanopia (blue-blind)
#8B4563
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a339b;
/* rgb */ color: rgb(138, 51, 155);
/* oklch */ color: oklch(48.9% 0.175 320.7);
Tailwind
colors: {
  custom: {
    50: '#af72b9',
    500: '#8a339b',
    950: '#000000',
  },
}
SCSS
$custom: #8a339b;
$custom-light: #af72b9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a339b",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 290.192,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.48868,
    "c": 0.17533,
    "h": 320.7
  },
  "luminance": 0.10137
}

Semantic roles & 50–950 ramp

primary
#8A339B
secondary
#7CBA6F
accent
#DA4E65
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A339B

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

Preview Lab → · Contrast checker → · Palette generator →

#8A339B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva