#9D308C#9D308C

#9D308C is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.5% C 0.177 H 334.8°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#9D308C
RGBrgb(157, 48, 140)
HSLhsl(309, 53%, 40%)
HSVhsv(309, 69%, 62%)
CMYKcmyk(0%, 69.4%, 10.8%, 38.4%)
CIE-LABlab(39.88, 55.03, -27.62)
CIE-LCHlch(39.88, 61.57, 333.35°)
OKLaboklab(50.5% 0.1601 -0.0754)
OKLCHoklch(50.5% 0.177 334.8)
XYZxyz(19.6954, 11.1771, 25.9260)
Luminance0.1118 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D308C #309D41
analogous
#78309D #9D308C #9D3055
triadic
#9D308C #8C9D30 #308C9D
tetradic
#9D308C #9D7830 #309D41 #30559D
square
#9D308C #9D7830 #309D41 #30559D
split-complementary
#9D308C #559D30 #309D78
monochromatic
#3F1338 #6E2262 #9D308C #C644B2 #D473C5

Accessibility & contrast

On white

6.49
#9D308C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#9D308C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D308C
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D308C#FFFFFF#000000##FFFFFF
##9D308C1.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F548F
Deuteranopia (green-blind)
#546489
Tritanopia (blue-blind)
#A5385A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9d308c;
/* rgb */ color: rgb(157, 48, 140);
/* oklch */ color: oklch(50.5% 0.177 334.8);
Tailwind
colors: {
  custom: {
    50: '#bd72ae',
    500: '#9d308c',
    950: '#000000',
  },
}
SCSS
$custom: #9d308c;
$custom-light: #bd72ae;
$custom-dark: #000000;
JSON
{
  "hex": "#9d308c",
  "rgb": {
    "r": 157,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 309.358,
    "s": 53.171,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50496,
    "c": 0.17698,
    "h": 334.8
  },
  "luminance": 0.11175
}

Semantic roles & 50–950 ramp

primary
#9D308C
secondary
#6DBC79
accent
#DD624B
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9D308C

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

Preview Lab → · Contrast checker → · Palette generator →

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