#9D308B#9D308B

#9D308B is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.4% C 0.176 H 335.2°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#9D308B
RGBrgb(157, 48, 139)
HSLhsl(310, 53%, 40%)
HSVhsv(310, 69%, 62%)
CMYKcmyk(0%, 69.4%, 11.5%, 38.4%)
CIE-LABlab(39.83, 54.87, -27.09)
CIE-LCHlch(39.83, 61.19, 333.73°)
OKLaboklab(50.44% 0.16 -0.0739)
OKLCHoklch(50.44% 0.176 335.2)
XYZxyz(19.6220, 11.1478, 25.5394)
Luminance0.1115 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D308B #309D42
analogous
#78309D #9D308B #9D3055
triadic
#9D308B #8B9D30 #308B9D
tetradic
#9D308B #9D7830 #309D42 #30559D
square
#9D308B #9D7830 #309D42 #30559D
split-complementary
#9D308B #559D30 #309D78
monochromatic
#3F1338 #6E2262 #9D308B #C644B1 #D473C4

Accessibility & contrast

On white

6.50
#9D308B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#9D308B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D308B
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D308B#FFFFFF#000000##FFFFFF
##9D308B1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30538E
Deuteranopia (green-blind)
#556488
Tritanopia (blue-blind)
#A53859
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9d308b;
/* rgb */ color: rgb(157, 48, 139);
/* oklch */ color: oklch(50.4% 0.176 335.2);
Tailwind
colors: {
  custom: {
    50: '#bd72ad',
    500: '#9d308b',
    950: '#000000',
  },
}
SCSS
$custom: #9d308b;
$custom-light: #bd72ad;
$custom-dark: #000000;
JSON
{
  "hex": "#9d308b",
  "rgb": {
    "r": 157,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 309.908,
    "s": 53.171,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50445,
    "c": 0.17623,
    "h": 335.2
  },
  "luminance": 0.11146
}

Semantic roles & 50–950 ramp

primary
#9D308B
secondary
#6DBC7A
accent
#DD634B
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9D308B

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

Preview Lab → · Contrast checker → · Palette generator →

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