#8A34D1#8A34D1

#8A34D1 is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.8% C 0.226 H 304.5°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#8A34D1
RGBrgb(138, 52, 209)
HSLhsl(273, 63%, 51%)
HSVhsv(273, 75%, 82%)
CMYKcmyk(34%, 75.1%, 0%, 18%)
CIE-LABlab(41.94, 62.79, -65.42)
CIE-LCHlch(41.94, 90.68, 313.83°)
OKLaboklab(52.78% 0.1279 -0.1863)
OKLCHoklch(52.78% 0.226 304.5)
XYZxyz(23.2152, 12.4628, 61.4918)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34D1 #7BD134
analogous
#3B34D1 #8A34D1 #D134C9
triadic
#8A34D1 #D18A34 #34D18A
tetradic
#8A34D1 #D13B34 #7BD134 #34C9D1
square
#8A34D1 #D13B34 #7BD134 #34C9D1
split-complementary
#8A34D1 #C9D134 #34D13B
monochromatic
#491A71 #6A25A3 #8A34D1 #A766DC #C498E8

Accessibility & contrast

On white

6.01
#8A34D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#8A34D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A34D1
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34D1#FFFFFF#000000##FFFFFF
##8A34D11.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D5
Deuteranopia (green-blind)
#0063CE
Tritanopia (blue-blind)
#7C5C81
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a34d1;
/* rgb */ color: rgb(138, 52, 209);
/* oklch */ color: oklch(52.8% 0.226 304.5);
Tailwind
colors: {
  custom: {
    50: '#b274e0',
    500: '#8a34d1',
    950: '#000000',
  },
}
SCSS
$custom: #8a34d1;
$custom-light: #b274e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34d1",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 209
  },
  "hsl": {
    "h": 272.866,
    "s": 63.052,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52782,
    "c": 0.226,
    "h": 304.5
  },
  "luminance": 0.12463
}

Semantic roles & 50–950 ramp

primary
#8A34D1
secondary
#ADD38E
accent
#E6428C
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8A34D1

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

Preview Lab → · Contrast checker → · Palette generator →

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