#9E1F8D#9E1F8D

#9E1F8D is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.3% C 0.197 H 334.5°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#9E1F8D
RGBrgb(158, 31, 141)
HSLhsl(308, 67%, 37%)
HSVhsv(308, 80%, 62%)
CMYKcmyk(0%, 80.4%, 10.8%, 38%)
CIE-LABlab(38.15, 60.97, -30.93)
CIE-LCHlch(38.15, 68.36, 333.10°)
OKLaboklab(49.3% 0.1776 -0.0848)
OKLCHoklch(49.3% 0.197 334.5)
XYZxyz(19.3985, 10.1739, 26.1363)
Luminance0.1017 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1F8D #1F9E30
analogous
#6F1F9E #9E1F8D #9E1F4E
triadic
#9E1F8D #8D9E1F #1F8D9E
tetradic
#9E1F8D #9E6F1F #1F9E30 #1F4E9E
square
#9E1F8D #9E6F1F #1F9E30 #1F4E9E
split-complementary
#9E1F8D #4E9E1F #1F9E6F
monochromatic
#380B32 #6B155F #9E1F8D #D129BB #DE59CD

Accessibility & contrast

On white

6.92
#9E1F8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#9E1F8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E1F8D
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1F8D#FFFFFF#000000##FFFFFF
##9E1F8D1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4E90
Deuteranopia (green-blind)
#4E608A
Tritanopia (blue-blind)
#A62C56
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9e1f8d;
/* rgb */ color: rgb(158, 31, 141);
/* oklch */ color: oklch(49.3% 0.197 334.5);
Tailwind
colors: {
  custom: {
    50: '#bf6baf',
    500: '#9e1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #9e1f8d;
$custom-light: #bf6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1f8d",
  "rgb": {
    "r": 158,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 308.031,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.49304,
    "c": 0.19678,
    "h": 334.5
  },
  "luminance": 0.10172
}

Semantic roles & 50–950 ramp

primary
#9E1F8D
secondary
#56C265
accent
#EA553E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9E1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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