#9A30BB#9A30BB

#9A30BB is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.9% C 0.215 H 316.7°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#9A30BB
RGBrgb(154, 48, 187)
HSLhsl(286, 59%, 46%)
HSVhsv(286, 74%, 73%)
CMYKcmyk(17.6%, 74.3%, 0%, 26.7%)
CIE-LABlab(42.11, 62.67, -52.23)
CIE-LCHlch(42.11, 81.59, 320.19°)
OKLaboklab(52.88% 0.1562 -0.147)
OKLCHoklch(52.88% 0.215 316.7)
XYZxyz(23.3517, 12.5728, 48.2008)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A30BB #51BB30
analogous
#5430BB #9A30BB #BB3096
triadic
#9A30BB #BB9A30 #30BB9A
tetradic
#9A30BB #BB5430 #51BB30 #3096BB
square
#9A30BB #BB5430 #51BB30 #3096BB
split-complementary
#9A30BB #96BB30 #30BB54
monochromatic
#4A175A #72238A #9A30BB #B555D3 #CA86E0

Accessibility & contrast

On white

5.98
#9A30BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9A30BB
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A30BB#FFFFFF#000000##FFFFFF
##9A30BB1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#3166B8
Tritanopia (blue-blind)
#984E73
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9a30bb;
/* rgb */ color: rgb(154, 48, 187);
/* oklch */ color: oklch(52.9% 0.215 316.7);
Tailwind
colors: {
  custom: {
    50: '#bc73d0',
    500: '#9a30bb',
    950: '#000000',
  },
}
SCSS
$custom: #9a30bb;
$custom-light: #bc73d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9a30bb",
  "rgb": {
    "r": 154,
    "g": 48,
    "b": 187
  },
  "hsl": {
    "h": 285.755,
    "s": 59.149,
    "l": 46.078
  },
  "oklch": {
    "l": 0.52877,
    "c": 0.21451,
    "h": 316.7
  },
  "luminance": 0.12572
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9A30BB

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

Preview Lab → · Contrast checker → · Palette generator →

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