#9D315E#9D315E

#9D315E is a mid, vivid pink. Relative luminance 0.102; OKLCH L 48.6% C 0.148 H 358.6°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#9D315E
RGBrgb(157, 49, 94)
HSLhsl(335, 52%, 40%)
HSVhsv(335, 69%, 62%)
CMYKcmyk(0%, 68.8%, 40.1%, 38.4%)
CIE-LABlab(38.15, 48.42, -1.59)
CIE-LCHlch(38.15, 48.45, 358.12°)
OKLaboklab(48.63% 0.1483 -0.0036)
OKLCHoklch(48.63% 0.148 358.6)
XYZxyz(17.0244, 10.1749, 11.6549)
Luminance0.1017 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D315E #319D70
analogous
#9D3194 #9D315E #9D3A31
triadic
#9D315E #5E9D31 #315E9D
tetradic
#9D315E #949D31 #319D70 #3A319D
square
#9D315E #949D31 #319D70 #3A319D
split-complementary
#9D315E #319D3A #31949D
monochromatic
#401426 #6E2242 #9D315E #C5467B #D4759C

Accessibility & contrast

On white

6.92
#9D315E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#9D315E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D315E
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D315E#FFFFFF#000000##FFFFFF
##9D315E1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#464D5F
Deuteranopia (green-blind)
#63615B
Tritanopia (blue-blind)
#AA2543
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d315e;
/* rgb */ color: rgb(157, 49, 94);
/* oklch */ color: oklch(48.6% 0.148 358.6);
Tailwind
colors: {
  custom: {
    50: '#be718b',
    500: '#9d315e',
    950: '#000000',
  },
}
SCSS
$custom: #9d315e;
$custom-light: #be718b;
$custom-dark: #000000;
JSON
{
  "hex": "#9d315e",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 94
  },
  "hsl": {
    "h": 335,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.48626,
    "c": 0.14833,
    "h": 358.6
  },
  "luminance": 0.10173
}

Semantic roles & 50–950 ramp

primary
#9D315E
secondary
#6EBC9B
accent
#DCA04C
background
#FCF7F8
surface
#F8EDF0
border
#D1C8CB
text
#13080C
muted
#827B7D

Preview Lab

Preview with #9D315E

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

Preview Lab → · Contrast checker → · Palette generator →

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