#9C2E98#9C2E98

#9C2E98 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.8% C 0.188 H 329.5°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#9C2E98
RGBrgb(156, 46, 152)
HSLhsl(302, 54%, 40%)
HSVhsv(302, 71%, 61%)
CMYKcmyk(0%, 70.5%, 2.6%, 38.8%)
CIE-LABlab(40.07, 57.48, -34.63)
CIE-LCHlch(40.07, 67.11, 328.93°)
OKLaboklab(50.8% 0.1621 -0.0956)
OKLCHoklch(50.8% 0.188 329.5)
XYZxyz(20.3546, 11.2904, 30.8069)
Luminance0.1129 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2E98 #2E9C32
analogous
#692E9C #9C2E98 #9C2E61
triadic
#9C2E98 #989C2E #2E989C
tetradic
#9C2E98 #9C692E #2E9C32 #2E619C
square
#9C2E98 #9C692E #2E9C32 #2E619C
split-complementary
#9C2E98 #619C2E #2E9C69
monochromatic
#3D123C #6D206A #9C2E98 #C740C2 #D570D1

Accessibility & contrast

On white

6.45
#9C2E98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#9C2E98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C2E98
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2E98#FFFFFF#000000##FFFFFF
##9C2E981.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21559B
Deuteranopia (green-blind)
#4D6495
Tritanopia (blue-blind)
#A23C60
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9c2e98;
/* rgb */ color: rgb(156, 46, 152);
/* oklch */ color: oklch(50.8% 0.188 329.5);
Tailwind
colors: {
  custom: {
    50: '#bd71b7',
    500: '#9c2e98',
    950: '#000000',
  },
}
SCSS
$custom: #9c2e98;
$custom-light: #bd71b7;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2e98",
  "rgb": {
    "r": 156,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 302.182,
    "s": 54.455,
    "l": 39.608
  },
  "oklch": {
    "l": 0.50801,
    "c": 0.18818,
    "h": 329.5
  },
  "luminance": 0.11289
}

Semantic roles & 50–950 ramp

primary
#9C2E98
secondary
#6ABC6D
accent
#DE4F4A
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120811
muted
#817B80

Preview Lab

Preview with #9C2E98

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

Preview Lab → · Contrast checker → · Palette generator →

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