#9D2EA6#9D2EA6

#9D2EA6 is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 51.8% C 0.200 H 324.7°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#9D2EA6
RGBrgb(157, 46, 166)
HSLhsl(296, 57%, 42%)
HSVhsv(296, 72%, 65%)
CMYKcmyk(5.4%, 72.3%, 0%, 34.9%)
CIE-LABlab(41.02, 60.12, -41.53)
CIE-LCHlch(41.02, 73.07, 325.37°)
OKLaboklab(51.77% 0.1633 -0.1156)
OKLCHoklch(51.77% 0.2 324.7)
XYZxyz(21.7640, 11.8766, 37.2151)
Luminance0.1187 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2EA6 #37A62E
analogous
#612EA6 #9D2EA6 #A62E73
triadic
#9D2EA6 #A69D2E #2EA69D
tetradic
#9D2EA6 #A6612E #37A62E #2E73A6
square
#9D2EA6 #A6612E #37A62E #2E73A6
split-complementary
#9D2EA6 #73A62E #2EA661
monochromatic
#421346 #702176 #9D2EA6 #C246CC #D176D9

Accessibility & contrast

On white

6.22
#9D2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#9D2EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2EA6
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2EA6#FFFFFF#000000##FFFFFF
##9D2EA61.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0758A9
Deuteranopia (green-blind)
#4665A3
Tritanopia (blue-blind)
#A04267
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9d2ea6;
/* rgb */ color: rgb(157, 46, 166);
/* oklch */ color: oklch(51.8% 0.200 324.7);
Tailwind
colors: {
  custom: {
    50: '#bd72c1',
    500: '#9d2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #9d2ea6;
$custom-light: #bd72c1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2ea6",
  "rgb": {
    "r": 157,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 295.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51772,
    "c": 0.20004,
    "h": 324.7
  },
  "luminance": 0.11875
}

Semantic roles & 50–950 ramp

primary
#9D2EA6
secondary
#75C16F
accent
#E04853
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #9D2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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