#8A3BA8#8A3BA8

#8A3BA8 is a mid, vivid purple. Relative luminance 0.114; OKLCH L 50.6% C 0.177 H 315.4°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#8A3BA8
RGBrgb(138, 59, 168)
HSLhsl(283, 48%, 45%)
HSVhsv(283, 65%, 66%)
CMYKcmyk(17.9%, 64.9%, 0%, 34.1%)
CIE-LABlab(40.18, 50.78, -44.23)
CIE-LCHlch(40.18, 67.34, 318.94°)
OKLaboklab(50.63% 0.1259 -0.1241)
OKLCHoklch(50.63% 0.177 315.4)
XYZxyz(19.1120, 11.3590, 38.2240)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3BA8 #59A83B
analogous
#533BA8 #8A3BA8 #A83B90
triadic
#8A3BA8 #A88A3B #3BA88A
tetradic
#8A3BA8 #A8533B #59A83B #3B90A8
square
#8A3BA8 #A8533B #59A83B #3B90A8
split-complementary
#8A3BA8 #90A83B #3BA853
monochromatic
#401B4D #652B7B #8A3BA8 #A85BC5 #C088D5

Accessibility & contrast

On white

6.42
#8A3BA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8A3BA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3BA8
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3BA8#FFFFFF#000000##FFFFFF
##8A3BA81.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E5AAB
Deuteranopia (green-blind)
#3A61A5
Tritanopia (blue-blind)
#884F6C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3ba8;
/* rgb */ color: rgb(138, 59, 168);
/* oklch */ color: oklch(50.6% 0.177 315.4);
Tailwind
colors: {
  custom: {
    50: '#af76c2',
    500: '#8a3ba8',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ba8;
$custom-light: #af76c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ba8",
  "rgb": {
    "r": 138,
    "g": 59,
    "b": 168
  },
  "hsl": {
    "h": 283.486,
    "s": 48.018,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50627,
    "c": 0.17684,
    "h": 315.4
  },
  "luminance": 0.11358
}

Semantic roles & 50–950 ramp

primary
#8A3BA8
secondary
#91C07F
accent
#D85075
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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