#8A34B4#8A34B4

#8A34B4 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.6% C 0.198 H 312.2°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#8A34B4
RGBrgb(138, 52, 180)
HSLhsl(280, 55%, 45%)
HSVhsv(280, 71%, 71%)
CMYKcmyk(23.3%, 71.1%, 0%, 29.4%)
CIE-LABlab(39.84, 56.44, -51.89)
CIE-LCHlch(39.84, 76.67, 317.40°)
OKLaboklab(50.63% 0.1329 -0.1466)
OKLCHoklch(50.63% 0.198 312.2)
XYZxyz(19.9459, 11.1551, 44.2736)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34B4 #5EB434
analogous
#4A34B4 #8A34B4 #B4349E
triadic
#8A34B4 #B48A34 #34B48A
tetradic
#8A34B4 #B44A34 #5EB434 #349EB4
square
#8A34B4 #B44A34 #5EB434 #349EB4
split-complementary
#8A34B4 #9EB434 #34B44A
monochromatic
#411955 #662685 #8A34B4 #A757CE #C086DC

Accessibility & contrast

On white

6.50
#8A34B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#8A34B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A34B4
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34B4#FFFFFF#000000##FFFFFF
##8A34B41.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB8
Deuteranopia (green-blind)
#2560B1
Tritanopia (blue-blind)
#855071
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a34b4;
/* rgb */ color: rgb(138, 52, 180);
/* oklch */ color: oklch(50.6% 0.198 312.2);
Tailwind
colors: {
  custom: {
    50: '#b073cb',
    500: '#8a34b4',
    950: '#000000',
  },
}
SCSS
$custom: #8a34b4;
$custom-light: #b073cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34b4",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 180
  },
  "hsl": {
    "h": 280.313,
    "s": 55.172,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50633,
    "c": 0.19785,
    "h": 312.2
  },
  "luminance": 0.11155
}

Semantic roles & 50–950 ramp

primary
#8A34B4
secondary
#96C67E
accent
#DF497A
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8A34B4

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

Preview Lab → · Contrast checker → · Palette generator →

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