#9C2DA8#9C2DA8

#9C2DA8 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.7% C 0.202 H 323.7°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#9C2DA8
RGBrgb(156, 45, 168)
HSLhsl(294, 58%, 42%)
HSVhsv(294, 73%, 66%)
CMYKcmyk(7.1%, 73.2%, 0%, 34.1%)
CIE-LABlab(40.85, 60.61, -42.99)
CIE-LCHlch(40.85, 74.31, 324.65°)
OKLaboklab(51.66% 0.163 -0.1199)
OKLCHoklch(51.66% 0.202 323.7)
XYZxyz(21.7159, 11.7732, 38.1668)
Luminance0.1177 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2DA8 #39A82D
analogous
#5F2DA8 #9C2DA8 #A82D77
triadic
#9C2DA8 #A89C2D #2DA89C
tetradic
#9C2DA8 #A85F2D #39A82D #2D77A8
square
#9C2DA8 #A85F2D #39A82D #2D77A8
split-complementary
#9C2DA8 #77A82D #2DA85F
monochromatic
#421347 #6F2078 #9C2DA8 #C045CD #D075DA

Accessibility & contrast

On white

6.26
#9C2DA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#9C2DA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C2DA8
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2DA8#FFFFFF#000000##FFFFFF
##9C2DA81.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AB
Deuteranopia (green-blind)
#4365A5
Tritanopia (blue-blind)
#9F4368
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9c2da8;
/* rgb */ color: rgb(156, 45, 168);
/* oklch */ color: oklch(51.7% 0.202 323.7);
Tailwind
colors: {
  custom: {
    50: '#bd71c2',
    500: '#9c2da8',
    950: '#000000',
  },
}
SCSS
$custom: #9c2da8;
$custom-light: #bd71c2;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2da8",
  "rgb": {
    "r": 156,
    "g": 45,
    "b": 168
  },
  "hsl": {
    "h": 294.146,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.5166,
    "c": 0.20236,
    "h": 323.7
  },
  "luminance": 0.11772
}

Semantic roles & 50–950 ramp

primary
#9C2DA8
secondary
#77C26F
accent
#E14756
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#120812
muted
#817B81

Preview Lab

Preview with #9C2DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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