#9B308D#9B308D

#9B308D is a mid, vivid purple. Relative luminance 0.110; OKLCH L 50.2% C 0.177 H 333.6°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#9B308D
RGBrgb(155, 48, 141)
HSLhsl(308, 53%, 40%)
HSVhsv(308, 69%, 61%)
CMYKcmyk(0%, 69%, 9%, 39.2%)
CIE-LABlab(39.59, 54.68, -28.70)
CIE-LCHlch(39.59, 61.76, 332.30°)
OKLaboklab(50.24% 0.1581 -0.0785)
OKLCHoklch(50.24% 0.177 333.6)
XYZxyz(19.3824, 11.0071, 26.2979)
Luminance0.1101 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B308D #309B3E
analogous
#73309B #9B308D #9B3058
triadic
#9B308D #8D9B30 #308D9B
tetradic
#9B308D #9B7330 #309B3E #30589B
square
#9B308D #9B7330 #309B3E #30589B
split-complementary
#9B308D #589B30 #309B73
monochromatic
#3E1338 #6C2262 #9B308D #C543B4 #D372C7

Accessibility & contrast

On white

6.56
#9B308D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#9B308D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B308D
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B308D#FFFFFF#000000##FFFFFF
##9B308D1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5390
Deuteranopia (green-blind)
#52638A
Tritanopia (blue-blind)
#A2395A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9b308d;
/* rgb */ color: rgb(155, 48, 141);
/* oklch */ color: oklch(50.2% 0.177 333.6);
Tailwind
colors: {
  custom: {
    50: '#bc72ae',
    500: '#9b308d',
    950: '#000000',
  },
}
SCSS
$custom: #9b308d;
$custom-light: #bc72ae;
$custom-dark: #000000;
JSON
{
  "hex": "#9b308d",
  "rgb": {
    "r": 155,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 307.85,
    "s": 52.709,
    "l": 39.804
  },
  "oklch": {
    "l": 0.50241,
    "c": 0.17652,
    "h": 333.6
  },
  "luminance": 0.11006
}

Semantic roles & 50–950 ramp

primary
#9B308D
secondary
#6CBB76
accent
#DC5F4C
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9B308D

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

Preview Lab → · Contrast checker → · Palette generator →

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