#9D2EA8#9D2EA8

#9D2EA8 is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 51.9% C 0.202 H 324.0°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#9D2EA8
RGBrgb(157, 46, 168)
HSLhsl(295, 57%, 42%)
HSVhsv(295, 73%, 66%)
CMYKcmyk(6.5%, 72.6%, 0%, 34.1%)
CIE-LABlab(41.14, 60.47, -42.53)
CIE-LCHlch(41.14, 73.93, 324.88°)
OKLaboklab(51.9% 0.1632 -0.1185)
OKLCHoklch(51.9% 0.202 324)
XYZxyz(21.9489, 11.9506, 38.1888)
Luminance0.1195 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2EA8 #39A82E
analogous
#602EA8 #9D2EA8 #A82E76
triadic
#9D2EA8 #A89D2E #2EA89D
tetradic
#9D2EA8 #A8602E #39A82E #2E76A8
square
#9D2EA8 #A8602E #39A82E #2E76A8
split-complementary
#9D2EA8 #76A82E #2EA860
monochromatic
#431448 #702178 #9D2EA8 #C047CD #D177DA

Accessibility & contrast

On white

6.20
#9D2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#9D2EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2EA8
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2EA8#FFFFFF#000000##FFFFFF
##9D2EA81.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AB
Deuteranopia (green-blind)
#4465A5
Tritanopia (blue-blind)
#A04368
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9d2ea8;
/* rgb */ color: rgb(157, 46, 168);
/* oklch */ color: oklch(51.9% 0.202 324.0);
Tailwind
colors: {
  custom: {
    50: '#be72c2',
    500: '#9d2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #9d2ea8;
$custom-light: #be72c2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2ea8",
  "rgb": {
    "r": 157,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 294.59,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51895,
    "c": 0.2017,
    "h": 324
  },
  "luminance": 0.11949
}

Semantic roles & 50–950 ramp

primary
#9D2EA8
secondary
#78C270
accent
#E04855
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130912
muted
#827B81

Preview Lab

Preview with #9D2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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