#9A2D7B#9A2D7B

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

Color values

HEX#9A2D7B
RGBrgb(154, 45, 123)
HSLhsl(317, 55%, 39%)
HSVhsv(317, 71%, 60%)
CMYKcmyk(0%, 70.8%, 20.1%, 39.6%)
CIE-LABlab(38.16, 52.83, -19.85)
CIE-LCHlch(38.16, 56.44, 339.40°)
OKLaboklab(48.89% 0.158 -0.0533)
OKLCHoklch(48.89% 0.167 341.3)
XYZxyz(17.8405, 10.1786, 19.7601)
Luminance0.1018 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2D7B #2D9A4C
analogous
#832D9A #9A2D7B #9A2D45
triadic
#9A2D7B #7B9A2D #2D7B9A
tetradic
#9A2D7B #9A832D #2D9A4C #2D459A
square
#9A2D7B #9A832D #2D9A4C #2D459A
split-complementary
#9A2D7B #459A2D #2D9A83
monochromatic
#3B112F #6B1F55 #9A2D7B #C73EA0 #D46DB7

Accessibility & contrast

On white

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

On black

3.04
#9A2D7B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9A2D7B#FFFFFF#000000##FFFFFF
##9A2D7B1.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364F7D
Deuteranopia (green-blind)
#576078
Tritanopia (blue-blind)
#A32F50
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9a2d7b;
/* rgb */ color: rgb(154, 45, 123);
/* oklch */ color: oklch(48.9% 0.167 341.3);
Tailwind
colors: {
  custom: {
    50: '#bb6fa1',
    500: '#9a2d7b',
    950: '#000000',
  },
}
SCSS
$custom: #9a2d7b;
$custom-light: #bb6fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2d7b",
  "rgb": {
    "r": 154,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 317.064,
    "s": 54.774,
    "l": 39.02
  },
  "oklch": {
    "l": 0.48891,
    "c": 0.16673,
    "h": 341.3
  },
  "luminance": 0.10177
}

Semantic roles & 50–950 ramp

primary
#9A2D7B
secondary
#67BB7F
accent
#DE744A
background
#FBF7F9
surface
#F7EDF2
border
#D0C8CC
text
#12080F
muted
#817B7E

Preview Lab

Preview with #9A2D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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