#8A30B8#8A30B8

#8A30B8 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.5% C 0.206 H 311.3°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#8A30B8
RGBrgb(138, 48, 184)
HSLhsl(280, 59%, 45%)
HSVhsv(280, 74%, 72%)
CMYKcmyk(25%, 73.9%, 0%, 27.8%)
CIE-LABlab(39.54, 58.91, -54.73)
CIE-LCHlch(39.54, 80.41, 317.11°)
OKLaboklab(50.51% 0.1363 -0.1549)
OKLCHoklch(50.51% 0.206 311.3)
XYZxyz(20.1883, 10.9784, 46.3937)
Luminance0.1098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A30B8 #5EB830
analogous
#4630B8 #8A30B8 #B830A2
triadic
#8A30B8 #B88A30 #30B88A
tetradic
#8A30B8 #B84630 #5EB830 #30A2B8
square
#8A30B8 #B84630 #5EB830 #30A2B8
split-complementary
#8A30B8 #A2B830 #30B846
monochromatic
#411757 #662387 #8A30B8 #A753D2 #C084DF

Accessibility & contrast

On white

6.57
#8A30B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#8A30B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A30B8
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A30B8#FFFFFF#000000##FFFFFF
##8A30B81.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BC
Deuteranopia (green-blind)
#195FB5
Tritanopia (blue-blind)
#844F72
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a30b8;
/* rgb */ color: rgb(138, 48, 184);
/* oklch */ color: oklch(50.5% 0.206 311.3);
Tailwind
colors: {
  custom: {
    50: '#b171ce',
    500: '#8a30b8',
    950: '#000000',
  },
}
SCSS
$custom: #8a30b8;
$custom-light: #b171ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a30b8",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 184
  },
  "hsl": {
    "h": 279.706,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.5051,
    "c": 0.20632,
    "h": 311.3
  },
  "luminance": 0.10978
}

Semantic roles & 50–950 ramp

primary
#8A30B8
secondary
#96C87C
accent
#E2467B
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A30B8

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

Preview Lab → · Contrast checker → · Palette generator →

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