#9D258C#9D258C

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

Color values

HEX#9D258C
RGBrgb(157, 37, 140)
HSLhsl(309, 62%, 38%)
HSVhsv(309, 76%, 62%)
CMYKcmyk(0%, 76.4%, 10.8%, 38.4%)
CIE-LABlab(38.53, 58.85, -29.74)
CIE-LCHlch(38.53, 65.94, 333.19°)
OKLaboklab(49.52% 0.1714 -0.0814)
OKLCHoklch(49.52% 0.19 334.6)
XYZxyz(19.3000, 10.3864, 25.7942)
Luminance0.1038 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D258C #259D36
analogous
#72259D #9D258C #9D2550
triadic
#9D258C #8C9D25 #258C9D
tetradic
#9D258C #9D7225 #259D36 #25509D
square
#9D258C #9D7225 #259D36 #25509D
split-complementary
#9D258C #509D25 #259D72
monochromatic
#3A0E34 #6B1960 #9D258C #CE31B8 #DA62C9

Accessibility & contrast

On white

6.82
#9D258C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#9D258C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D258C
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D258C#FFFFFF#000000##FFFFFF
##9D258C1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234F8F
Deuteranopia (green-blind)
#506189
Tritanopia (blue-blind)
#A53056
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9d258c;
/* rgb */ color: rgb(157, 37, 140);
/* oklch */ color: oklch(49.5% 0.190 334.6);
Tailwind
colors: {
  custom: {
    50: '#be6dae',
    500: '#9d258c',
    950: '#000000',
  },
}
SCSS
$custom: #9d258c;
$custom-light: #be6dae;
$custom-dark: #000000;
JSON
{
  "hex": "#9d258c",
  "rgb": {
    "r": 157,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 308.5,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.49522,
    "c": 0.18974,
    "h": 334.6
  },
  "luminance": 0.10385
}

Semantic roles & 50–950 ramp

primary
#9D258C
secondary
#5EBF6C
accent
#E55A43
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9D258C

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

Preview Lab → · Contrast checker → · Palette generator →

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