#8A34BC#8A34BC

#8A34BC is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.2% C 0.206 H 309.9°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#8A34BC
RGBrgb(138, 52, 188)
HSLhsl(278, 57%, 47%)
HSVhsv(278, 72%, 74%)
CMYKcmyk(26.6%, 72.3%, 0%, 26.3%)
CIE-LABlab(40.39, 58.15, -55.71)
CIE-LCHlch(40.39, 80.53, 316.23°)
OKLaboklab(51.2% 0.1318 -0.1578)
OKLCHoklch(51.2% 0.206 309.9)
XYZxyz(20.7845, 11.4905, 48.6902)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34BC #66BC34
analogous
#4634BC #8A34BC #BC34AA
triadic
#8A34BC #BC8A34 #34BC8A
tetradic
#8A34BC #BC4634 #66BC34 #34AABC
square
#8A34BC #BC4634 #66BC34 #34AABC
split-complementary
#8A34BC #AABC34 #34BC46
monochromatic
#44195C #67278C #8A34BC #A65BD2 #C08BDF

Accessibility & contrast

On white

6.37
#8A34BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#8A34BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A34BC
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34BC#FFFFFF#000000##FFFFFF
##8A34BC1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#1660B9
Tritanopia (blue-blind)
#835375
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a34bc;
/* rgb */ color: rgb(138, 52, 188);
/* oklch */ color: oklch(51.2% 0.206 309.9);
Tailwind
colors: {
  custom: {
    50: '#b173d1',
    500: '#8a34bc',
    950: '#000000',
  },
}
SCSS
$custom: #8a34bc;
$custom-light: #b173d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34bc",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 188
  },
  "hsl": {
    "h": 277.941,
    "s": 56.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51202,
    "c": 0.2056,
    "h": 309.9
  },
  "luminance": 0.1149
}

Semantic roles & 50–950 ramp

primary
#8A34BC
secondary
#9DC983
accent
#E04880
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A34BC

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

Preview Lab → · Contrast checker → · Palette generator →

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