#9D307C#9D307C

#9D307C is a mid, vivid pink. Relative luminance 0.107; OKLCH L 49.7% C 0.166 H 342.2°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#9D307C
RGBrgb(157, 48, 124)
HSLhsl(318, 53%, 40%)
HSVhsv(318, 69%, 62%)
CMYKcmyk(0%, 69.4%, 21%, 38.4%)
CIE-LABlab(39.14, 52.63, -18.92)
CIE-LCHlch(39.14, 55.93, 340.22°)
OKLaboklab(49.72% 0.1577 -0.0507)
OKLCHoklch(49.72% 0.166 342.2)
XYZxyz(18.6002, 10.7391, 20.1581)
Luminance0.1074 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D307C #309D51
analogous
#87309D #9D307C #9D3045
triadic
#9D307C #7C9D30 #307C9D
tetradic
#9D307C #9D8730 #309D51 #30459D
square
#9D307C #9D8730 #309D51 #30459D
split-complementary
#9D307C #459D30 #309D87
monochromatic
#3F1332 #6E2257 #9D307C #C6449F #D473B7

Accessibility & contrast

On white

6.67
#9D307C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#9D307C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D307C
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D307C#FFFFFF#000000##FFFFFF
##9D307C1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39517E
Deuteranopia (green-blind)
#5A6379
Tritanopia (blue-blind)
#A73151
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9d307c;
/* rgb */ color: rgb(157, 48, 124);
/* oklch */ color: oklch(49.7% 0.166 342.2);
Tailwind
colors: {
  custom: {
    50: '#bd71a2',
    500: '#9d307c',
    950: '#000000',
  },
}
SCSS
$custom: #9d307c;
$custom-light: #bd71a2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d307c",
  "rgb": {
    "r": 157,
    "g": 48,
    "b": 124
  },
  "hsl": {
    "h": 318.165,
    "s": 53.171,
    "l": 40.196
  },
  "oklch": {
    "l": 0.49717,
    "c": 0.16563,
    "h": 342.2
  },
  "luminance": 0.10737
}

Semantic roles & 50–950 ramp

primary
#9D307C
secondary
#6DBC85
accent
#DD774B
background
#FCF7F9
surface
#F8EDF2
border
#D1C8CC
text
#12080F
muted
#817B7E

Preview Lab

Preview with #9D307C

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

Preview Lab → · Contrast checker → · Palette generator →

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