#9D308D#9D308D

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

Color values

HEX#9D308D
RGBrgb(157, 48, 141)
HSLhsl(309, 53%, 40%)
HSVhsv(309, 69%, 62%)
CMYKcmyk(0%, 69.4%, 10.2%, 38.4%)
CIE-LABlab(39.93, 55.19, -28.16)
CIE-LCHlch(39.93, 61.95, 332.97°)
OKLaboklab(50.55% 0.1602 -0.0769)
OKLCHoklch(50.55% 0.178 334.4)
XYZxyz(19.7695, 11.2067, 26.3160)
Luminance0.1120 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D308D #309D40
analogous
#76309D #9D308D #9D3057
triadic
#9D308D #8D9D30 #308D9D
tetradic
#9D308D #9D7630 #309D40 #30579D
square
#9D308D #9D7630 #309D40 #30579D
split-complementary
#9D308D #579D30 #309D76
monochromatic
#3F1339 #6E2263 #9D308D #C644B3 #D473C6

Accessibility & contrast

On white

6.48
#9D308D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D308D
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D308D#FFFFFF#000000##FFFFFF
##9D308D1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5490
Deuteranopia (green-blind)
#54648A
Tritanopia (blue-blind)
#A4395A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9d308d;
/* rgb */ color: rgb(157, 48, 141);
/* oklch */ color: oklch(50.5% 0.178 334.4);
Tailwind
colors: {
  custom: {
    50: '#bd72ae',
    500: '#9d308d',
    950: '#000000',
  },
}
SCSS
$custom: #9d308d;
$custom-light: #bd72ae;
$custom-dark: #000000;
JSON
{
  "hex": "#9d308d",
  "rgb": {
    "r": 157,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 308.807,
    "s": 53.171,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50548,
    "c": 0.17773,
    "h": 334.4
  },
  "luminance": 0.11205
}

Semantic roles & 50–950 ramp

primary
#9D308D
secondary
#6DBC78
accent
#DD614B
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9D308D

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

Preview Lab → · Contrast checker → · Palette generator →

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