#8A34BD#8A34BD

#8A34BD is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.3% C 0.207 H 309.6°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#8A34BD
RGBrgb(138, 52, 189)
HSLhsl(278, 57%, 47%)
HSVhsv(278, 72%, 74%)
CMYKcmyk(27%, 72.5%, 0%, 25.9%)
CIE-LABlab(40.47, 58.37, -56.18)
CIE-LCHlch(40.47, 81.01, 316.09°)
OKLaboklab(51.28% 0.1317 -0.1592)
OKLCHoklch(51.28% 0.207 309.6)
XYZxyz(20.8927, 11.5338, 49.2599)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34BD #67BD34
analogous
#4634BD #8A34BD #BD34AC
triadic
#8A34BD #BD8A34 #34BD8A
tetradic
#8A34BD #BD4634 #67BD34 #34ACBD
square
#8A34BD #BD4634 #67BD34 #34ACBD
split-complementary
#8A34BD #ACBD34 #34BD46
monochromatic
#441A5D #67278D #8A34BD #A65CD2 #C08CDF

Accessibility & contrast

On white

6.35
#8A34BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8A34BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A34BD
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34BD#FFFFFF#000000##FFFFFF
##8A34BD1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC1
Deuteranopia (green-blind)
#1461BA
Tritanopia (blue-blind)
#835376
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a34bd;
/* rgb */ color: rgb(138, 52, 189);
/* oklch */ color: oklch(51.3% 0.207 309.6);
Tailwind
colors: {
  custom: {
    50: '#b173d2',
    500: '#8a34bd',
    950: '#000000',
  },
}
SCSS
$custom: #8a34bd;
$custom-light: #b173d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34bd",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 189
  },
  "hsl": {
    "h": 277.664,
    "s": 56.846,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51275,
    "c": 0.20657,
    "h": 309.6
  },
  "luminance": 0.11533
}

Semantic roles & 50–950 ramp

primary
#8A34BD
secondary
#9DCA83
accent
#E04880
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A34BD

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

Preview Lab → · Contrast checker → · Palette generator →

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