#8A30BA#8A30BA

#8A30BA is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.7% C 0.208 H 310.8°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#8A30BA
RGBrgb(138, 48, 186)
HSLhsl(279, 59%, 46%)
HSVhsv(279, 74%, 73%)
CMYKcmyk(25.8%, 74.2%, 0%, 27.1%)
CIE-LABlab(39.69, 59.34, -55.68)
CIE-LCHlch(39.69, 81.37, 316.82°)
OKLaboklab(50.65% 0.136 -0.1577)
OKLCHoklch(50.65% 0.208 310.8)
XYZxyz(20.3994, 11.0628, 47.5056)
Luminance0.1106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A30BA #60BA30
analogous
#4530BA #8A30BA #BA30A5
triadic
#8A30BA #BA8A30 #30BA8A
tetradic
#8A30BA #BA4530 #60BA30 #30A5BA
square
#8A30BA #BA4530 #60BA30 #30A5BA
split-complementary
#8A30BA #A5BA30 #30BA45
monochromatic
#421759 #662389 #8A30BA #A754D3 #C085DF

Accessibility & contrast

On white

6.54
#8A30BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#8A30BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A30BA
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A30BA#FFFFFF#000000##FFFFFF
##8A30BA1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BE
Deuteranopia (green-blind)
#145FB7
Tritanopia (blue-blind)
#845073
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a30ba;
/* rgb */ color: rgb(138, 48, 186);
/* oklch */ color: oklch(50.7% 0.208 310.8);
Tailwind
colors: {
  custom: {
    50: '#b171d0',
    500: '#8a30ba',
    950: '#000000',
  },
}
SCSS
$custom: #8a30ba;
$custom-light: #b171d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a30ba",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 186
  },
  "hsl": {
    "h": 279.13,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.50655,
    "c": 0.20822,
    "h": 310.8
  },
  "luminance": 0.11062
}

Semantic roles & 50–950 ramp

primary
#8A30BA
secondary
#97C97D
accent
#E2467C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A30BA

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

Preview Lab → · Contrast checker → · Palette generator →

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