#9D308E#9D308E

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

Color values

HEX#9D308E
RGBrgb(157, 48, 142)
HSLhsl(308, 53%, 40%)
HSVhsv(308, 69%, 62%)
CMYKcmyk(0%, 69.4%, 9.6%, 38.4%)
CIE-LABlab(39.98, 55.34, -28.69)
CIE-LCHlch(39.98, 62.34, 332.60°)
OKLaboklab(50.6% 0.1603 -0.0785)
OKLCHoklch(50.6% 0.178 333.9)
XYZxyz(19.8442, 11.2366, 26.7097)
Luminance0.1124 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D308E #309D3F
analogous
#76309D #9D308E #9D3057
triadic
#9D308E #8E9D30 #308E9D
tetradic
#9D308E #9D7630 #309D3F #30579D
square
#9D308E #9D7630 #309D3F #30579D
split-complementary
#9D308E #579D30 #309D76
monochromatic
#3F1339 #6E2264 #9D308E #C644B4 #D473C7

Accessibility & contrast

On white

6.47
#9D308E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D308E
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D308E#FFFFFF#000000##FFFFFF
##9D308E1.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5491
Deuteranopia (green-blind)
#54648B
Tritanopia (blue-blind)
#A4395B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9d308e;
/* rgb */ color: rgb(157, 48, 142);
/* oklch */ color: oklch(50.6% 0.178 333.9);
Tailwind
colors: {
  custom: {
    50: '#bd72af',
    500: '#9d308e',
    950: '#000000',
  },
}
SCSS
$custom: #9d308e;
$custom-light: #bd72af;
$custom-dark: #000000;
JSON
{
  "hex": "#9d308e",
  "rgb": {
    "r": 157,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 308.257,
    "s": 53.171,
    "l": 40.196
  },
  "oklch": {
    "l": 0.506,
    "c": 0.17849,
    "h": 333.9
  },
  "luminance": 0.11235
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9D308E

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

Preview Lab → · Contrast checker → · Palette generator →

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