#9D258A#9D258A

#9D258A is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.4% C 0.188 H 335.4°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#9D258A
RGBrgb(157, 37, 138)
HSLhsl(310, 62%, 38%)
HSVhsv(310, 76%, 62%)
CMYKcmyk(0%, 76.4%, 12.1%, 38.4%)
CIE-LABlab(38.42, 58.55, -28.67)
CIE-LCHlch(38.42, 65.20, 333.91°)
OKLaboklab(49.42% 0.1713 -0.0783)
OKLCHoklch(49.42% 0.188 335.4)
XYZxyz(19.1539, 10.3279, 25.0246)
Luminance0.1033 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D258A #259D38
analogous
#74259D #9D258A #9D254E
triadic
#9D258A #8A9D25 #258A9D
tetradic
#9D258A #9D7425 #259D38 #254E9D
square
#9D258A #9D7425 #259D38 #254E9D
split-complementary
#9D258A #4E9D25 #259D74
monochromatic
#3A0E33 #6B195E #9D258A #CE31B5 #DA62C7

Accessibility & contrast

On white

6.85
#9D258A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#9D258A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D258A
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D258A#FFFFFF#000000##FFFFFF
##9D258A1.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254F8D
Deuteranopia (green-blind)
#516187
Tritanopia (blue-blind)
#A52F55
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d258a;
/* rgb */ color: rgb(157, 37, 138);
/* oklch */ color: oklch(49.4% 0.188 335.4);
Tailwind
colors: {
  custom: {
    50: '#be6dac',
    500: '#9d258a',
    950: '#000000',
  },
}
SCSS
$custom: #9d258a;
$custom-light: #be6dac;
$custom-dark: #000000;
JSON
{
  "hex": "#9d258a",
  "rgb": {
    "r": 157,
    "g": 37,
    "b": 138
  },
  "hsl": {
    "h": 309.5,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.49415,
    "c": 0.18831,
    "h": 335.4
  },
  "luminance": 0.10326
}

Semantic roles & 50–950 ramp

primary
#9D258A
secondary
#5EBF6E
accent
#E55D43
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9D258A

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

Preview Lab → · Contrast checker → · Palette generator →

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