#8A34CC#8A34CC

#8A34CC is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.4% C 0.221 H 305.7°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#8A34CC
RGBrgb(138, 52, 204)
HSLhsl(274, 60%, 50%)
HSVhsv(274, 75%, 80%)
CMYKcmyk(32.4%, 74.5%, 0%, 20%)
CIE-LABlab(41.56, 61.67, -63.14)
CIE-LCHlch(41.56, 88.27, 314.33°)
OKLaboklab(52.4% 0.129 -0.1796)
OKLCHoklch(52.4% 0.221 305.7)
XYZxyz(22.6059, 12.2191, 58.2826)
Luminance0.1222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34CC #76CC34
analogous
#3E34CC #8A34CC #CC34C2
triadic
#8A34CC #CC8A34 #34CC8A
tetradic
#8A34CC #CC3E34 #76CC34 #34C2CC
square
#8A34CC #CC3E34 #76CC34 #34C2CC
split-complementary
#8A34CC #C2CC34 #34CC3E
monochromatic
#481B6B #69279C #8A34CC #A665D8 #C296E5

Accessibility & contrast

On white

6.10
#8A34CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#8A34CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A34CC
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34CC#FFFFFF#000000##FFFFFF
##8A34CC1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#0062C9
Tritanopia (blue-blind)
#7E5A7E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a34cc;
/* rgb */ color: rgb(138, 52, 204);
/* oklch */ color: oklch(52.4% 0.221 305.7);
Tailwind
colors: {
  custom: {
    50: '#b274dc',
    500: '#8a34cc',
    950: '#000000',
  },
}
SCSS
$custom: #8a34cc;
$custom-light: #b274dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34cc",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 204
  },
  "hsl": {
    "h": 273.947,
    "s": 59.843,
    "l": 50.196
  },
  "oklch": {
    "l": 0.52395,
    "c": 0.22114,
    "h": 305.7
  },
  "luminance": 0.12219
}

Semantic roles & 50–950 ramp

primary
#8A34CC
secondary
#A9D08C
accent
#E34589
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8A34CC

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

Preview Lab → · Contrast checker → · Palette generator →

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