#8A34C9#8A34C9

#8A34C9 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 52.2% C 0.218 H 306.4°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#8A34C9
RGBrgb(138, 52, 201)
HSLhsl(275, 59%, 50%)
HSVhsv(275, 74%, 79%)
CMYKcmyk(31.3%, 74.1%, 0%, 21.2%)
CIE-LABlab(41.34, 61.01, -61.77)
CIE-LCHlch(41.34, 86.82, 314.64°)
OKLaboklab(52.17% 0.1296 -0.1756)
OKLCHoklch(52.17% 0.218 306.4)
XYZxyz(22.2495, 12.0765, 56.4059)
Luminance0.1208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34C9 #73C934
analogous
#4034C9 #8A34C9 #C934BD
triadic
#8A34C9 #C98A34 #34C98A
tetradic
#8A34C9 #C94034 #73C934 #34BDC9
square
#8A34C9 #C94034 #73C934 #34BDC9
split-complementary
#8A34C9 #BDC934 #34C940
monochromatic
#471B68 #692798 #8A34C9 #A663D7 #C294E3

Accessibility & contrast

On white

6.15
#8A34C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#8A34C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A34C9
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34C9#FFFFFF#000000##FFFFFF
##8A34C91.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCD
Deuteranopia (green-blind)
#0062C6
Tritanopia (blue-blind)
#7F587C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a34c9;
/* rgb */ color: rgb(138, 52, 201);
/* oklch */ color: oklch(52.2% 0.218 306.4);
Tailwind
colors: {
  custom: {
    50: '#b274da',
    500: '#8a34c9',
    950: '#000000',
  },
}
SCSS
$custom: #8a34c9;
$custom-light: #b274da;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34c9",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 201
  },
  "hsl": {
    "h": 274.631,
    "s": 58.893,
    "l": 49.608
  },
  "oklch": {
    "l": 0.52166,
    "c": 0.21822,
    "h": 306.4
  },
  "luminance": 0.12076
}

Semantic roles & 50–950 ramp

primary
#8A34C9
secondary
#A7CE8A
accent
#E24688
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8A34C9

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

Preview Lab → · Contrast checker → · Palette generator →

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