#8A30B1#8A30B1

#8A30B1 is a mid, vivid purple. Relative luminance 0.107; OKLCH L 50.0% C 0.200 H 313.4°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#8A30B1
RGBrgb(138, 48, 177)
HSLhsl(282, 57%, 44%)
HSVhsv(282, 73%, 69%)
CMYKcmyk(22%, 72.9%, 0%, 30.6%)
CIE-LABlab(39.06, 57.44, -51.38)
CIE-LCHlch(39.06, 77.07, 318.19°)
OKLaboklab(50.01% 0.1373 -0.1451)
OKLCHoklch(50.01% 0.2 313.4)
XYZxyz(19.4726, 10.6921, 42.6245)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A30B1 #57B130
analogous
#4930B1 #8A30B1 #B13098
triadic
#8A30B1 #B18A30 #30B18A
tetradic
#8A30B1 #B14930 #57B130 #3098B1
square
#8A30B1 #B14930 #57B130 #3098B1
split-complementary
#8A30B1 #98B130 #30B149
monochromatic
#3F1651 #642381 #8A30B1 #A84FCF #C07FDC

Accessibility & contrast

On white

6.69
#8A30B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#8A30B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A30B1
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A30B1#FFFFFF#000000##FFFFFF
##8A30B11.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B5
Deuteranopia (green-blind)
#255EAE
Tritanopia (blue-blind)
#864C6E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a30b1;
/* rgb */ color: rgb(138, 48, 177);
/* oklch */ color: oklch(50.0% 0.200 313.4);
Tailwind
colors: {
  custom: {
    50: '#b071c9',
    500: '#8a30b1',
    950: '#000000',
  },
}
SCSS
$custom: #8a30b1;
$custom-light: #b071c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a30b1",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 177
  },
  "hsl": {
    "h": 281.86,
    "s": 57.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.5001,
    "c": 0.19973,
    "h": 313.4
  },
  "luminance": 0.10692
}

Semantic roles & 50–950 ramp

primary
#8A30B1
secondary
#8FC578
accent
#E14776
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A30B1

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

Preview Lab → · Contrast checker → · Palette generator →

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