#8A30B2#8A30B2

#8A30B2 is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.1% C 0.201 H 313.1°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#8A30B2
RGBrgb(138, 48, 178)
HSLhsl(282, 58%, 44%)
HSVhsv(282, 73%, 70%)
CMYKcmyk(22.5%, 73%, 0%, 30.2%)
CIE-LABlab(39.13, 57.65, -51.86)
CIE-LCHlch(39.13, 77.55, 318.03°)
OKLaboklab(50.08% 0.1372 -0.1465)
OKLCHoklch(50.08% 0.201 313.1)
XYZxyz(19.5726, 10.7321, 43.1513)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A30B2 #58B230
analogous
#4930B2 #8A30B2 #B23099
triadic
#8A30B2 #B28A30 #30B28A
tetradic
#8A30B2 #B24930 #58B230 #3099B2
square
#8A30B2 #B24930 #58B230 #3099B2
split-complementary
#8A30B2 #99B230 #30B249
monochromatic
#3F1652 #652382 #8A30B2 #A850D0 #C080DD

Accessibility & contrast

On white

6.67
#8A30B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#8A30B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A30B2
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A30B2#FFFFFF#000000##FFFFFF
##8A30B21.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#245EAF
Tritanopia (blue-blind)
#864D6E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a30b2;
/* rgb */ color: rgb(138, 48, 178);
/* oklch */ color: oklch(50.1% 0.201 313.1);
Tailwind
colors: {
  custom: {
    50: '#b071ca',
    500: '#8a30b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a30b2;
$custom-light: #b071ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a30b2",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 178
  },
  "hsl": {
    "h": 281.538,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50081,
    "c": 0.20066,
    "h": 313.1
  },
  "luminance": 0.10732
}

Semantic roles & 50–950 ramp

primary
#8A30B2
secondary
#90C678
accent
#E14776
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A30B2

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

Preview Lab → · Contrast checker → · Palette generator →

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