#8A34D5#8A34D5

#8A34D5 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 53.1% C 0.230 H 303.5°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#8A34D5
RGBrgb(138, 52, 213)
HSLhsl(272, 66%, 52%)
HSVhsv(272, 76%, 84%)
CMYKcmyk(35.2%, 75.6%, 0%, 16.5%)
CIE-LABlab(42.25, 63.70, -67.22)
CIE-LCHlch(42.25, 92.60, 313.46°)
OKLaboklab(53.1% 0.127 -0.1916)
OKLCHoklch(53.1% 0.23 303.5)
XYZxyz(23.7167, 12.6634, 64.1327)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34D5 #7FD534
analogous
#3A34D5 #8A34D5 #D534CF
triadic
#8A34D5 #D58A34 #34D58A
tetradic
#8A34D5 #D53A34 #7FD534 #34CFD5
square
#8A34D5 #D53A34 #7FD534 #34CFD5
split-complementary
#8A34D5 #CFD534 #34D53A
monochromatic
#4B1876 #6A23A9 #8A34D5 #A767DF #C499EA

Accessibility & contrast

On white

5.94
#8A34D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8A34D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A34D5
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34D5#FFFFFF#000000##FFFFFF
##8A34D51.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D9
Deuteranopia (green-blind)
#0063D2
Tritanopia (blue-blind)
#7B5D83
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a34d5;
/* rgb */ color: rgb(138, 52, 213);
/* oklch */ color: oklch(53.1% 0.230 303.5);
Tailwind
colors: {
  custom: {
    50: '#b274e3',
    500: '#8a34d5',
    950: '#000000',
  },
}
SCSS
$custom: #8a34d5;
$custom-light: #b274e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34d5",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 213
  },
  "hsl": {
    "h": 272.05,
    "s": 65.714,
    "l": 51.961
  },
  "oklch": {
    "l": 0.53095,
    "c": 0.22989,
    "h": 303.5
  },
  "luminance": 0.12663
}

Semantic roles & 50–950 ramp

primary
#8A34D5
secondary
#B0D68F
accent
#E93F8E
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8A34D5

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

Preview Lab → · Contrast checker → · Palette generator →

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