#8A34B7#8A34B7

#8A34B7 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.8% C 0.201 H 311.3°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#8A34B7
RGBrgb(138, 52, 183)
HSLhsl(279, 56%, 46%)
HSVhsv(279, 72%, 72%)
CMYKcmyk(24.6%, 71.6%, 0%, 28.2%)
CIE-LABlab(40.05, 57.08, -53.33)
CIE-LCHlch(40.05, 78.11, 316.94°)
OKLaboklab(50.84% 0.1325 -0.1508)
OKLCHoklch(50.84% 0.201 311.3)
XYZxyz(20.2549, 11.2787, 45.9006)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34B7 #61B734
analogous
#4834B7 #8A34B7 #B734A2
triadic
#8A34B7 #B78A34 #34B78A
tetradic
#8A34B7 #B74834 #61B734 #34A2B7
square
#8A34B7 #B74834 #61B734 #34A2B7
split-complementary
#8A34B7 #A2B734 #34B748
monochromatic
#421958 #662687 #8A34B7 #A759D0 #C088DD

Accessibility & contrast

On white

6.45
#8A34B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8A34B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A34B7
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34B7#FFFFFF#000000##FFFFFF
##8A34B71.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABB
Deuteranopia (green-blind)
#2160B4
Tritanopia (blue-blind)
#845172
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a34b7;
/* rgb */ color: rgb(138, 52, 183);
/* oklch */ color: oklch(50.8% 0.201 311.3);
Tailwind
colors: {
  custom: {
    50: '#b073cd',
    500: '#8a34b7',
    950: '#000000',
  },
}
SCSS
$custom: #8a34b7;
$custom-light: #b073cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34b7",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 183
  },
  "hsl": {
    "h": 279.389,
    "s": 55.745,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50844,
    "c": 0.20075,
    "h": 311.3
  },
  "luminance": 0.11278
}

Semantic roles & 50–950 ramp

primary
#8A34B7
secondary
#98C780
accent
#DF497C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A34B7

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

Preview Lab → · Contrast checker → · Palette generator →

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