#8A34CB#8A34CB

#8A34CB is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.3% C 0.220 H 305.9°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#8A34CB
RGBrgb(138, 52, 203)
HSLhsl(274, 59%, 50%)
HSVhsv(274, 74%, 80%)
CMYKcmyk(32%, 74.4%, 0%, 20.4%)
CIE-LABlab(41.49, 61.45, -62.69)
CIE-LCHlch(41.49, 87.78, 314.43°)
OKLaboklab(52.32% 0.1292 -0.1783)
OKLCHoklch(52.32% 0.22 305.9)
XYZxyz(22.4863, 12.1712, 57.6530)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34CB #75CB34
analogous
#3E34CB #8A34CB #CB34C1
triadic
#8A34CB #CB8A34 #34CB8A
tetradic
#8A34CB #CB3E34 #75CB34 #34C1CB
square
#8A34CB #CB3E34 #75CB34 #34C1CB
split-complementary
#8A34CB #C1CB34 #34CB3E
monochromatic
#481B6A #69289A #8A34CB #A665D7 #C295E4

Accessibility & contrast

On white

6.11
#8A34CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#8A34CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A34CB
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34CB#FFFFFF#000000##FFFFFF
##8A34CB1.006.113.436.11
#FFFFFF6.111.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCF
Deuteranopia (green-blind)
#0062C8
Tritanopia (blue-blind)
#7E597D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a34cb;
/* rgb */ color: rgb(138, 52, 203);
/* oklch */ color: oklch(52.3% 0.220 305.9);
Tailwind
colors: {
  custom: {
    50: '#b274dc',
    500: '#8a34cb',
    950: '#000000',
  },
}
SCSS
$custom: #8a34cb;
$custom-light: #b274dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34cb",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 203
  },
  "hsl": {
    "h": 274.172,
    "s": 59.216,
    "l": 50
  },
  "oklch": {
    "l": 0.52319,
    "c": 0.22016,
    "h": 305.9
  },
  "luminance": 0.12171
}

Semantic roles & 50–950 ramp

primary
#8A34CB
secondary
#A9CF8C
accent
#E24589
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8A34CB

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

Preview Lab → · Contrast checker → · Palette generator →

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