#9D258B#9D258B

#9D258B is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.5% C 0.189 H 335.0°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#9D258B
RGBrgb(157, 37, 139)
HSLhsl(309, 62%, 38%)
HSVhsv(309, 76%, 62%)
CMYKcmyk(0%, 76.4%, 11.5%, 38.4%)
CIE-LABlab(38.48, 58.70, -29.21)
CIE-LCHlch(38.48, 65.57, 333.55°)
OKLaboklab(49.47% 0.1713 -0.0799)
OKLCHoklch(49.47% 0.189 335)
XYZxyz(19.2266, 10.3570, 25.4076)
Luminance0.1036 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D258B #259D37
analogous
#73259D #9D258B #9D254F
triadic
#9D258B #8B9D25 #258B9D
tetradic
#9D258B #9D7325 #259D37 #254F9D
square
#9D258B #9D7325 #259D37 #254F9D
split-complementary
#9D258B #4F9D25 #259D73
monochromatic
#3A0E33 #6B195F #9D258B #CE31B7 #DA62C8

Accessibility & contrast

On white

6.84
#9D258B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D258B
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D258B#FFFFFF#000000##FFFFFF
##9D258B1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244F8E
Deuteranopia (green-blind)
#506188
Tritanopia (blue-blind)
#A52F56
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9d258b;
/* rgb */ color: rgb(157, 37, 139);
/* oklch */ color: oklch(49.5% 0.189 335.0);
Tailwind
colors: {
  custom: {
    50: '#be6dad',
    500: '#9d258b',
    950: '#000000',
  },
}
SCSS
$custom: #9d258b;
$custom-light: #be6dad;
$custom-dark: #000000;
JSON
{
  "hex": "#9d258b",
  "rgb": {
    "r": 157,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 309,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.49468,
    "c": 0.18903,
    "h": 335
  },
  "luminance": 0.10355
}

Semantic roles & 50–950 ramp

primary
#9D258B
secondary
#5EBF6D
accent
#E55B43
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9D258B

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

Preview Lab → · Contrast checker → · Palette generator →

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