#8A30C6#8A30C6

#8A30C6 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.6% C 0.220 H 307.5°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#8A30C6
RGBrgb(138, 48, 198)
HSLhsl(276, 61%, 48%)
HSVhsv(276, 76%, 78%)
CMYKcmyk(30.3%, 75.8%, 0%, 22.4%)
CIE-LABlab(40.56, 61.92, -61.28)
CIE-LCHlch(40.56, 87.11, 315.30°)
OKLaboklab(51.55% 0.1337 -0.1741)
OKLCHoklch(51.55% 0.22 307.5)
XYZxyz(21.7291, 11.5947, 54.5084)
Luminance0.1159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A30C6 #6CC630
analogous
#3F30C6 #8A30C6 #C630B7
triadic
#8A30C6 #C68A30 #30C68A
tetradic
#8A30C6 #C63F30 #6CC630 #30B7C6
square
#8A30C6 #C63F30 #6CC630 #30B7C6
split-complementary
#8A30C6 #B7C630 #30C63F
monochromatic
#451863 #682495 #8A30C6 #A65CD7 #C18DE3

Accessibility & contrast

On white

6.33
#8A30C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#8A30C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A30C6
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A30C6#FFFFFF#000000##FFFFFF
##8A30C61.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCA
Deuteranopia (green-blind)
#0060C3
Tritanopia (blue-blind)
#80557A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a30c6;
/* rgb */ color: rgb(138, 48, 198);
/* oklch */ color: oklch(51.6% 0.220 307.5);
Tailwind
colors: {
  custom: {
    50: '#b272d8',
    500: '#8a30c6',
    950: '#000000',
  },
}
SCSS
$custom: #8a30c6;
$custom-light: #b272d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a30c6",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 198
  },
  "hsl": {
    "h": 276,
    "s": 60.976,
    "l": 48.235
  },
  "oklch": {
    "l": 0.51551,
    "c": 0.21956,
    "h": 307.5
  },
  "luminance": 0.11594
}

Semantic roles & 50–950 ramp

primary
#8A30C6
secondary
#A2CE84
accent
#E44484
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #8A30C6

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

Preview Lab → · Contrast checker → · Palette generator →

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