#8A30C5#8A30C5

#8A30C5 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.5% C 0.219 H 307.8°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#8A30C5
RGBrgb(138, 48, 197)
HSLhsl(276, 61%, 48%)
HSVhsv(276, 76%, 77%)
CMYKcmyk(29.9%, 75.6%, 0%, 22.7%)
CIE-LABlab(40.49, 61.70, -60.82)
CIE-LCHlch(40.49, 86.64, 315.41°)
OKLaboklab(51.48% 0.1339 -0.1728)
OKLCHoklch(51.48% 0.219 307.8)
XYZxyz(21.6141, 11.5487, 53.9030)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A30C5 #6BC530
analogous
#4030C5 #8A30C5 #C530B5
triadic
#8A30C5 #C58A30 #30C58A
tetradic
#8A30C5 #C54030 #6BC530 #30B5C5
square
#8A30C5 #C54030 #6BC530 #30B5C5
split-complementary
#8A30C5 #B5C530 #30C540
monochromatic
#451863 #682494 #8A30C5 #A65BD7 #C18CE3

Accessibility & contrast

On white

6.35
#8A30C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8A30C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A30C5
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A30C5#FFFFFF#000000##FFFFFF
##8A30C51.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC9
Deuteranopia (green-blind)
#0060C2
Tritanopia (blue-blind)
#805579
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a30c5;
/* rgb */ color: rgb(138, 48, 197);
/* oklch */ color: oklch(51.5% 0.219 307.8);
Tailwind
colors: {
  custom: {
    50: '#b172d7',
    500: '#8a30c5',
    950: '#000000',
  },
}
SCSS
$custom: #8a30c5;
$custom-light: #b172d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a30c5",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 197
  },
  "hsl": {
    "h": 276.242,
    "s": 60.816,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51475,
    "c": 0.21862,
    "h": 307.8
  },
  "luminance": 0.11548
}

Semantic roles & 50–950 ramp

primary
#8A30C5
secondary
#A1CD84
accent
#E44483
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #8A30C5

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

Preview Lab → · Contrast checker → · Palette generator →

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