#8A30C9#8A30C9

#8A30C9 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.8% C 0.222 H 306.8°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#8A30C9
RGBrgb(138, 48, 201)
HSLhsl(275, 61%, 49%)
HSVhsv(275, 76%, 79%)
CMYKcmyk(31.3%, 76.1%, 0%, 21.2%)
CIE-LABlab(40.79, 62.57, -62.66)
CIE-LCHlch(40.79, 88.55, 314.96°)
OKLaboklab(51.78% 0.1331 -0.1782)
OKLCHoklch(51.78% 0.222 306.8)
XYZxyz(22.0785, 11.7345, 56.3489)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A30C9 #6FC930
analogous
#3E30C9 #8A30C9 #C930BC
triadic
#8A30C9 #C98A30 #30C98A
tetradic
#8A30C9 #C93E30 #6FC930 #30BCC9
square
#8A30C9 #C93E30 #6FC930 #30BCC9
split-complementary
#8A30C9 #BCC930 #30C93E
monochromatic
#461866 #682498 #8A30C9 #A65ED8 #C18FE4

Accessibility & contrast

On white

6.27
#8A30C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#8A30C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A30C9
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A30C9#FFFFFF#000000##FFFFFF
##8A30C91.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCD
Deuteranopia (green-blind)
#0061C6
Tritanopia (blue-blind)
#7F567B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a30c9;
/* rgb */ color: rgb(138, 48, 201);
/* oklch */ color: oklch(51.8% 0.222 306.8);
Tailwind
colors: {
  custom: {
    50: '#b272da',
    500: '#8a30c9',
    950: '#000000',
  },
}
SCSS
$custom: #8a30c9;
$custom-light: #b272da;
$custom-dark: #000000;
JSON
{
  "hex": "#8a30c9",
  "rgb": {
    "r": 138,
    "g": 48,
    "b": 201
  },
  "hsl": {
    "h": 275.294,
    "s": 61.446,
    "l": 48.824
  },
  "oklch": {
    "l": 0.51781,
    "c": 0.22241,
    "h": 306.8
  },
  "luminance": 0.11734
}

Semantic roles & 50–950 ramp

primary
#8A30C9
secondary
#A4CF86
accent
#E54386
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8A30C9

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

Preview Lab → · Contrast checker → · Palette generator →

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