#8A30BB#8A30BB

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

Color values

HEX#8A30BB
RGBrgb(138, 48, 187)
HSLhsl(279, 59%, 46%)
HSVhsv(279, 74%, 73%)
CMYKcmyk(26.2%, 74.3%, 0%, 26.7%)
CIE-LABlab(39.76, 59.55, -56.15)
CIE-LCHlch(39.76, 81.85, 316.68°)
OKLaboklab(50.73% 0.1358 -0.1591)
OKLCHoklch(50.73% 0.209 310.5)
XYZxyz(20.5061, 11.1055, 48.0674)
Luminance0.1110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A30BB #61BB30
analogous
#4430BB #8A30BB #BB30A6
triadic
#8A30BB #BB8A30 #30BB8A
tetradic
#8A30BB #BB4430 #61BB30 #30A6BB
square
#8A30BB #BB4430 #61BB30 #30A6BB
split-complementary
#8A30BB #A6BB30 #30BB44
monochromatic
#42175A #66238A #8A30BB #A755D3 #C086E0

Accessibility & contrast

On white

6.52
#8A30BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#8A30BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A30BB
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A30BB#FFFFFF#000000##FFFFFF
##8A30BB1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABF
Deuteranopia (green-blind)
#115FB8
Tritanopia (blue-blind)
#835073
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a30bb;
/* rgb */ color: rgb(138, 48, 187);
/* oklch */ color: oklch(50.7% 0.209 310.5);
Tailwind
colors: {
  custom: {
    50: '#b171d0',
    500: '#8a30bb',
    950: '#000000',
  },
}
SCSS
$custom: #8a30bb;
$custom-light: #b171d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a30bb",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 187
  },
  "hsl": {
    "h": 278.849,
    "s": 59.149,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50729,
    "c": 0.20915,
    "h": 310.5
  },
  "luminance": 0.11105
}

Semantic roles & 50–950 ramp

primary
#8A30BB
secondary
#98C97D
accent
#E2457D
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A30BB

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

Preview Lab → · Contrast checker → · Palette generator →

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