#9A2EB7#9A2EB7

#9A2EB7 is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.4% C 0.213 H 318.0°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#9A2EB7
RGBrgb(154, 46, 183)
HSLhsl(287, 60%, 45%)
HSVhsv(287, 75%, 72%)
CMYKcmyk(15.8%, 74.9%, 0%, 28.2%)
CIE-LABlab(41.60, 62.62, -50.70)
CIE-LCHlch(41.60, 80.57, 321.00°)
OKLaboklab(52.43% 0.1585 -0.1425)
OKLCHoklch(52.43% 0.213 318)
XYZxyz(22.8495, 12.2440, 45.9503)
Luminance0.1224 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2EB7 #4BB72E
analogous
#552EB7 #9A2EB7 #B72E90
triadic
#9A2EB7 #B79A2E #2EB79A
tetradic
#9A2EB7 #B7552E #4BB72E #2E90B7
square
#9A2EB7 #B7552E #4BB72E #2E90B7
split-complementary
#9A2EB7 #90B72E #2EB755
monochromatic
#481555 #712286 #9A2EB7 #B74FD3 #CB80DF

Accessibility & contrast

On white

6.09
#9A2EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#9A2EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A2EB7
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2EB7#FFFFFF#000000##FFFFFF
##9A2EB71.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBB
Deuteranopia (green-blind)
#3465B4
Tritanopia (blue-blind)
#994B71
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9a2eb7;
/* rgb */ color: rgb(154, 46, 183);
/* oklch */ color: oklch(52.4% 0.213 318.0);
Tailwind
colors: {
  custom: {
    50: '#bc72cd',
    500: '#9a2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #9a2eb7;
$custom-light: #bc72cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2eb7",
  "rgb": {
    "r": 154,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 287.299,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.52431,
    "c": 0.21316,
    "h": 318
  },
  "luminance": 0.12243
}

Semantic roles & 50–950 ramp

primary
#9A2EB7
secondary
#8AC879
accent
#E34566
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#120913
muted
#817B82

Preview Lab

Preview with #9A2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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