#9D2895#9D2895

#9D2895 is a mid, vivid purple. Relative luminance 0.109; OKLCH L 50.3% C 0.193 H 331.0°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#9D2895
RGBrgb(157, 40, 149)
HSLhsl(304, 59%, 39%)
HSVhsv(304, 75%, 62%)
CMYKcmyk(0%, 74.5%, 5.1%, 38.4%)
CIE-LABlab(39.34, 59.30, -33.95)
CIE-LCHlch(39.34, 68.33, 330.21°)
OKLaboklab(50.26% 0.1691 -0.0936)
OKLCHoklch(50.26% 0.193 331)
XYZxyz(20.0882, 10.8572, 29.4656)
Luminance0.1086 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2895 #289D30
analogous
#6A289D #9D2895 #9D285A
triadic
#9D2895 #959D28 #28959D
tetradic
#9D2895 #9D6A28 #289D30 #285A9D
square
#9D2895 #9D6A28 #289D30 #285A9D
split-complementary
#9D2895 #5A9D28 #289D6A
monochromatic
#3B0F38 #6C1C67 #9D2895 #CC36C2 #D867D1

Accessibility & contrast

On white

6.62
#9D2895 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#9D2895 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2895
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2895#FFFFFF#000000##FFFFFF
##9D28951.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5298
Deuteranopia (green-blind)
#4D6292
Tritanopia (blue-blind)
#A3375C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9d2895;
/* rgb */ color: rgb(157, 40, 149);
/* oklch */ color: oklch(50.3% 0.193 331.0);
Tailwind
colors: {
  custom: {
    50: '#be6fb4',
    500: '#9d2895',
    950: '#000000',
  },
}
SCSS
$custom: #9d2895;
$custom-light: #be6fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2895",
  "rgb": {
    "r": 157,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 304.103,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.50259,
    "c": 0.19321,
    "h": 331
  },
  "luminance": 0.10856
}

Semantic roles & 50–950 ramp

primary
#9D2895
secondary
#62BE69
accent
#E35045
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9D2895

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

Preview Lab → · Contrast checker → · Palette generator →

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