#9E37A2#9E37A2

#9E37A2 is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.6% C 0.186 H 326.3°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#9E37A2
RGBrgb(158, 55, 162)
HSLhsl(298, 49%, 43%)
HSVhsv(298, 66%, 64%)
CMYKcmyk(2.5%, 66%, 0%, 36.5%)
CIE-LABlab(42.17, 56.20, -37.29)
CIE-LCHlch(42.17, 67.45, 326.43°)
OKLaboklab(52.56% 0.1548 -0.1033)
OKLCHoklch(52.56% 0.186 326.3)
XYZxyz(21.9879, 12.6115, 35.4516)
Luminance0.1261 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E37A2 #3BA237
analogous
#6837A2 #9E37A2 #A23770
triadic
#9E37A2 #A29E37 #37A29E
tetradic
#9E37A2 #A26837 #3BA237 #3770A2
square
#9E37A2 #A26837 #3BA237 #3770A2
split-complementary
#9E37A2 #70A237 #37A268
monochromatic
#451847 #712774 #9E37A2 #C052C4 #D180D4

Accessibility & contrast

On white

5.96
#9E37A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#9E37A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E37A2
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E37A2#FFFFFF#000000##FFFFFF
##9E37A21.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255BA5
Deuteranopia (green-blind)
#4E689F
Tritanopia (blue-blind)
#A24668
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9e37a2;
/* rgb */ color: rgb(158, 55, 162);
/* oklch */ color: oklch(52.6% 0.186 326.3);
Tailwind
colors: {
  custom: {
    50: '#be76be',
    500: '#9e37a2',
    950: '#000000',
  },
}
SCSS
$custom: #9e37a2;
$custom-light: #be76be;
$custom-dark: #000000;
JSON
{
  "hex": "#9e37a2",
  "rgb": {
    "r": 158,
    "g": 55,
    "b": 162
  },
  "hsl": {
    "h": 297.757,
    "s": 49.309,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52559,
    "c": 0.18614,
    "h": 326.3
  },
  "luminance": 0.1261
}

Semantic roles & 50–950 ramp

primary
#9E37A2
secondary
#7ABD78
accent
#D94F54
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9E37A2

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

Preview Lab → · Contrast checker → · Palette generator →

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