#8A34C7#8A34C7

#8A34C7 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 52.0% C 0.216 H 306.9°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#8A34C7
RGBrgb(138, 52, 199)
HSLhsl(275, 59%, 49%)
HSVhsv(275, 74%, 78%)
CMYKcmyk(30.7%, 73.9%, 0%, 22%)
CIE-LABlab(41.19, 60.56, -60.85)
CIE-LCHlch(41.19, 85.85, 314.87°)
OKLaboklab(52.02% 0.13 -0.1729)
OKLCHoklch(52.02% 0.216 306.9)
XYZxyz(22.0158, 11.9830, 55.1749)
Luminance0.1198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34C7 #71C734
analogous
#4134C7 #8A34C7 #C734BB
triadic
#8A34C7 #C78A34 #34C78A
tetradic
#8A34C7 #C74134 #71C734 #34BBC7
square
#8A34C7 #C74134 #71C734 #34BBC7
split-complementary
#8A34C7 #BBC734 #34C741
monochromatic
#471B66 #682796 #8A34C7 #A662D6 #C293E3

Accessibility & contrast

On white

6.18
#8A34C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#8A34C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A34C7
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34C7#FFFFFF#000000##FFFFFF
##8A34C71.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECB
Deuteranopia (green-blind)
#0062C4
Tritanopia (blue-blind)
#80577B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a34c7;
/* rgb */ color: rgb(138, 52, 199);
/* oklch */ color: oklch(52.0% 0.216 306.9);
Tailwind
colors: {
  custom: {
    50: '#b174d9',
    500: '#8a34c7',
    950: '#000000',
  },
}
SCSS
$custom: #8a34c7;
$custom-light: #b174d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34c7",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 199
  },
  "hsl": {
    "h": 275.102,
    "s": 58.566,
    "l": 49.216
  },
  "oklch": {
    "l": 0.52015,
    "c": 0.21628,
    "h": 306.9
  },
  "luminance": 0.11983
}

Semantic roles & 50–950 ramp

primary
#8A34C7
secondary
#A6CE89
accent
#E24687
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8A34C7

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

Preview Lab → · Contrast checker → · Palette generator →

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