#9D1F94#9D1F94

#9D1F94 is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.5% C 0.201 H 331.4°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#9D1F94
RGBrgb(157, 31, 148)
HSLhsl(304, 67%, 37%)
HSVhsv(304, 80%, 62%)
CMYKcmyk(0%, 80.3%, 5.7%, 38.4%)
CIE-LABlab(38.35, 61.82, -34.90)
CIE-LCHlch(38.35, 70.99, 330.55°)
OKLaboklab(49.54% 0.1768 -0.0962)
OKLCHoklch(49.54% 0.201 331.4)
XYZxyz(19.7399, 10.2878, 28.9573)
Luminance0.1029 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F94 #1F9D28
analogous
#671F9D #9D1F94 #9D1F55
triadic
#9D1F94 #949D1F #1F949D
tetradic
#9D1F94 #9D671F #1F9D28 #1F559D
square
#9D1F94 #9D671F #1F9D28 #1F559D
split-complementary
#9D1F94 #559D1F #1F9D67
monochromatic
#370B34 #6A1564 #9D1F94 #D029C4 #DE58D5

Accessibility & contrast

On white

6.87
#9D1F94 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#9D1F94 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D1F94
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1F94#FFFFFF#000000##FFFFFF
##9D1F941.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104F97
Deuteranopia (green-blind)
#4A6091
Tritanopia (blue-blind)
#A43059
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d1f94;
/* rgb */ color: rgb(157, 31, 148);
/* oklch */ color: oklch(49.5% 0.201 331.4);
Tailwind
colors: {
  custom: {
    50: '#be6bb4',
    500: '#9d1f94',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f94;
$custom-light: #be6bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f94",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 304.286,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.49537,
    "c": 0.20127,
    "h": 331.4
  },
  "luminance": 0.10286
}

Semantic roles & 50–950 ramp

primary
#9D1F94
secondary
#56C25E
accent
#EA4A3E
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9D1F94

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

Preview Lab → · Contrast checker → · Palette generator →

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