#9A2EB8#9A2EB8

#9A2EB8 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.5% C 0.214 H 317.7°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#9A2EB8
RGBrgb(154, 46, 184)
HSLhsl(287, 60%, 45%)
HSVhsv(287, 75%, 72%)
CMYKcmyk(16.3%, 75%, 0%, 27.8%)
CIE-LABlab(41.67, 62.81, -51.19)
CIE-LCHlch(41.67, 81.02, 320.82°)
OKLaboklab(52.5% 0.1584 -0.1439)
OKLCHoklch(52.5% 0.214 317.7)
XYZxyz(22.9539, 12.2857, 46.5004)
Luminance0.1229 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2EB8 #4CB82E
analogous
#552EB8 #9A2EB8 #B82E91
triadic
#9A2EB8 #B89A2E #2EB89A
tetradic
#9A2EB8 #B8552E #4CB82E #2E91B8
square
#9A2EB8 #B8552E #4CB82E #2E91B8
split-complementary
#9A2EB8 #91B82E #2EB855
monochromatic
#481656 #712287 #9A2EB8 #B750D3 #CB81DF

Accessibility & contrast

On white

6.07
#9A2EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#9A2EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A2EB8
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2EB8#FFFFFF#000000##FFFFFF
##9A2EB81.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBC
Deuteranopia (green-blind)
#3366B5
Tritanopia (blue-blind)
#994B71
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9a2eb8;
/* rgb */ color: rgb(154, 46, 184);
/* oklch */ color: oklch(52.5% 0.214 317.7);
Tailwind
colors: {
  custom: {
    50: '#bc72ce',
    500: '#9a2eb8',
    950: '#000000',
  },
}
SCSS
$custom: #9a2eb8;
$custom-light: #bc72ce;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2eb8",
  "rgb": {
    "r": 154,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 286.957,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.52498,
    "c": 0.21403,
    "h": 317.7
  },
  "luminance": 0.12285
}

Semantic roles & 50–950 ramp

primary
#9A2EB8
secondary
#8BC879
accent
#E34567
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9A2EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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