#9D308F#9D308F

#9D308F is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.7% C 0.179 H 333.5°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#9D308F
RGBrgb(157, 48, 143)
HSLhsl(308, 53%, 40%)
HSVhsv(308, 69%, 62%)
CMYKcmyk(0%, 69.4%, 8.9%, 38.4%)
CIE-LABlab(40.03, 55.50, -29.22)
CIE-LCHlch(40.03, 62.73, 332.24°)
OKLaboklab(50.65% 0.1604 -0.08)
OKLCHoklch(50.65% 0.179 333.5)
XYZxyz(19.9196, 11.2668, 27.1069)
Luminance0.1127 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D308F #309D3E
analogous
#74309D #9D308F #9D3059
triadic
#9D308F #8F9D30 #308F9D
tetradic
#9D308F #9D7430 #309D3E #30599D
square
#9D308F #9D7430 #309D3E #30599D
split-complementary
#9D308F #599D30 #309D74
monochromatic
#3F133A #6E2264 #9D308F #C644B5 #D473C8

Accessibility & contrast

On white

6.46
#9D308F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#9D308F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D308F
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D308F#FFFFFF#000000##FFFFFF
##9D308F1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5492
Deuteranopia (green-blind)
#53648C
Tritanopia (blue-blind)
#A43A5B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9d308f;
/* rgb */ color: rgb(157, 48, 143);
/* oklch */ color: oklch(50.7% 0.179 333.5);
Tailwind
colors: {
  custom: {
    50: '#bd72b0',
    500: '#9d308f',
    950: '#000000',
  },
}
SCSS
$custom: #9d308f;
$custom-light: #bd72b0;
$custom-dark: #000000;
JSON
{
  "hex": "#9d308f",
  "rgb": {
    "r": 157,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 307.706,
    "s": 53.171,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50652,
    "c": 0.17925,
    "h": 333.5
  },
  "luminance": 0.11265
}

Semantic roles & 50–950 ramp

primary
#9D308F
secondary
#6DBC77
accent
#DD5E4B
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#120810
muted
#817B7F

Preview Lab

Preview with #9D308F

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

Preview Lab → · Contrast checker → · Palette generator →

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