#9B308F#9B308F

#9B308F is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.3% C 0.178 H 332.7°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#9B308F
RGBrgb(155, 48, 143)
HSLhsl(307, 53%, 40%)
HSVhsv(307, 69%, 61%)
CMYKcmyk(0%, 69%, 7.7%, 39.2%)
CIE-LABlab(39.69, 55.00, -29.76)
CIE-LCHlch(39.69, 62.54, 331.58°)
OKLaboklab(50.35% 0.1583 -0.0816)
OKLCHoklch(50.35% 0.178 332.7)
XYZxyz(19.5325, 11.0672, 27.0887)
Luminance0.1107 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B308F #309B3C
analogous
#72309B #9B308F #9B305A
triadic
#9B308F #8F9B30 #308F9B
tetradic
#9B308F #9B7230 #309B3C #305A9B
square
#9B308F #9B7230 #309B3C #305A9B
split-complementary
#9B308F #5A9B30 #309B72
monochromatic
#3E1339 #6C2264 #9B308F #C543B6 #D372C8

Accessibility & contrast

On white

6.54
#9B308F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#9B308F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B308F
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B308F#FFFFFF#000000##FFFFFF
##9B308F1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5492
Deuteranopia (green-blind)
#51638C
Tritanopia (blue-blind)
#A23A5B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9b308f;
/* rgb */ color: rgb(155, 48, 143);
/* oklch */ color: oklch(50.3% 0.178 332.7);
Tailwind
colors: {
  custom: {
    50: '#bc72b0',
    500: '#9b308f',
    950: '#000000',
  },
}
SCSS
$custom: #9b308f;
$custom-light: #bc72b0;
$custom-dark: #000000;
JSON
{
  "hex": "#9b308f",
  "rgb": {
    "r": 155,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 306.729,
    "s": 52.709,
    "l": 39.804
  },
  "oklch": {
    "l": 0.50347,
    "c": 0.17806,
    "h": 332.7
  },
  "luminance": 0.11066
}

Semantic roles & 50–950 ramp

primary
#9B308F
secondary
#6CBB75
accent
#DC5C4C
background
#FBF7FA
surface
#F7EDF5
border
#D0C8CF
text
#120810
muted
#817B7F

Preview Lab

Preview with #9B308F

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

Preview Lab → · Contrast checker → · Palette generator →

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