#9A30BA#9A30BA

#9A30BA is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.8% C 0.214 H 317.0°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#9A30BA
RGBrgb(154, 48, 186)
HSLhsl(286, 59%, 46%)
HSVhsv(286, 74%, 73%)
CMYKcmyk(17.2%, 74.2%, 0%, 27.1%)
CIE-LABlab(42.05, 62.48, -51.75)
CIE-LCHlch(42.05, 81.13, 320.37°)
OKLaboklab(52.81% 0.1563 -0.1456)
OKLCHoklch(52.81% 0.214 317)
XYZxyz(23.2450, 12.5301, 47.6390)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A30BA #50BA30
analogous
#5530BA #9A30BA #BA3095
triadic
#9A30BA #BA9A30 #30BA9A
tetradic
#9A30BA #BA5530 #50BA30 #3095BA
square
#9A30BA #BA5530 #50BA30 #3095BA
split-complementary
#9A30BA #95BA30 #30BA55
monochromatic
#491759 #722389 #9A30BA #B654D3 #CA85DF

Accessibility & contrast

On white

5.99
#9A30BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#9A30BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A30BA
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A30BA#FFFFFF#000000##FFFFFF
##9A30BA1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#3266B7
Tritanopia (blue-blind)
#984D73
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9a30ba;
/* rgb */ color: rgb(154, 48, 186);
/* oklch */ color: oklch(52.8% 0.214 317.0);
Tailwind
colors: {
  custom: {
    50: '#bc73cf',
    500: '#9a30ba',
    950: '#000000',
  },
}
SCSS
$custom: #9a30ba;
$custom-light: #bc73cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9a30ba",
  "rgb": {
    "r": 154,
    "g": 48,
    "b": 186
  },
  "hsl": {
    "h": 286.087,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.52809,
    "c": 0.21364,
    "h": 317
  },
  "luminance": 0.12529
}

Semantic roles & 50–950 ramp

primary
#9A30BA
secondary
#8FC97D
accent
#E2466A
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9A30BA

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

Preview Lab → · Contrast checker → · Palette generator →

#9A30BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva