#9A2E9E#9A2E9E

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

Color values

HEX#9A2E9E
RGBrgb(154, 46, 158)
HSLhsl(298, 55%, 40%)
HSVhsv(298, 71%, 62%)
CMYKcmyk(2.5%, 70.9%, 0%, 38%)
CIE-LABlab(40.07, 58.04, -38.27)
CIE-LCHlch(40.07, 69.52, 326.60°)
OKLaboklab(50.85% 0.16 -0.1062)
OKLCHoklch(50.85% 0.192 326.4)
XYZxyz(20.4746, 11.2940, 33.4427)
Luminance0.1129 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2E9E #329E2E
analogous
#622E9E #9A2E9E #9E2E6A
triadic
#9A2E9E #9E9A2E #2E9E9A
tetradic
#9A2E9E #9E622E #329E2E #2E6A9E
square
#9A2E9E #9E622E #329E2E #2E6A9E
split-complementary
#9A2E9E #6A9E2E #2E9E62
monochromatic
#3E123F #6C206F #9A2E9E #C341C8 #D271D6

Accessibility & contrast

On white

6.44
#9A2E9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9A2E9E
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2E9E#FFFFFF#000000##FFFFFF
##9A2E9E1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1656A1
Deuteranopia (green-blind)
#48639B
Tritanopia (blue-blind)
#9E4063
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9a2e9e;
/* rgb */ color: rgb(154, 46, 158);
/* oklch */ color: oklch(50.8% 0.192 326.4);
Tailwind
colors: {
  custom: {
    50: '#bb71bb',
    500: '#9a2e9e',
    950: '#000000',
  },
}
SCSS
$custom: #9a2e9e;
$custom-light: #bb71bb;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2e9e",
  "rgb": {
    "r": 154,
    "g": 46,
    "b": 158
  },
  "hsl": {
    "h": 297.857,
    "s": 54.902,
    "l": 40
  },
  "oklch": {
    "l": 0.50849,
    "c": 0.19202,
    "h": 326.4
  },
  "luminance": 0.11293
}

Semantic roles & 50–950 ramp

primary
#9A2E9E
secondary
#6EBD6B
accent
#DE4A4F
background
#FBF7FB
surface
#F7EDF6
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9A2E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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