#9D307F#9D307F

#9D307F is a mid, vivid pink. Relative luminance 0.108; OKLCH L 49.9% C 0.168 H 340.7°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#9D307F
RGBrgb(157, 48, 127)
HSLhsl(317, 53%, 40%)
HSVhsv(317, 69%, 62%)
CMYKcmyk(0%, 69.4%, 19.1%, 38.4%)
CIE-LABlab(39.27, 53.06, -20.58)
CIE-LCHlch(39.27, 56.91, 338.80°)
OKLaboklab(49.86% 0.1582 -0.0554)
OKLCHoklch(49.86% 0.168 340.7)
XYZxyz(18.7928, 10.8161, 21.1725)
Luminance0.1081 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D307F #309D4E
analogous
#85309D #9D307F #9D3048
triadic
#9D307F #7F9D30 #307F9D
tetradic
#9D307F #9D8530 #309D4E #30489D
square
#9D307F #9D8530 #309D4E #30489D
split-complementary
#9D307F #489D30 #309D85
monochromatic
#3F1333 #6E2259 #9D307F #C644A2 #D473BA

Accessibility & contrast

On white

6.64
#9D307F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#9D307F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D307F
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D307F#FFFFFF#000000##FFFFFF
##9D307F1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385181
Deuteranopia (green-blind)
#59637C
Tritanopia (blue-blind)
#A63253
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9d307f;
/* rgb */ color: rgb(157, 48, 127);
/* oklch */ color: oklch(49.9% 0.168 340.7);
Tailwind
colors: {
  custom: {
    50: '#bd71a4',
    500: '#9d307f',
    950: '#000000',
  },
}
SCSS
$custom: #9d307f;
$custom-light: #bd71a4;
$custom-dark: #000000;
JSON
{
  "hex": "#9d307f",
  "rgb": {
    "r": 157,
    "g": 48,
    "b": 127
  },
  "hsl": {
    "h": 316.514,
    "s": 53.171,
    "l": 40.196
  },
  "oklch": {
    "l": 0.49856,
    "c": 0.16764,
    "h": 340.7
  },
  "luminance": 0.10814
}

Semantic roles & 50–950 ramp

primary
#9D307F
secondary
#6DBC83
accent
#DD734B
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#12080F
muted
#817B7F

Preview Lab

Preview with #9D307F

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

Preview Lab → · Contrast checker → · Palette generator →

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