#9A2EC7#9A2EC7

#9A2EC7 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.5% C 0.227 H 313.4°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#9A2EC7
RGBrgb(154, 46, 199)
HSLhsl(282, 62%, 48%)
HSVhsv(282, 77%, 78%)
CMYKcmyk(22.6%, 76.9%, 0%, 22%)
CIE-LABlab(42.69, 65.73, -58.32)
CIE-LCHlch(42.69, 87.87, 318.42°)
OKLaboklab(53.54% 0.1562 -0.1649)
OKLCHoklch(53.54% 0.227 313.4)
XYZxyz(24.6104, 12.9483, 55.2246)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2EC7 #5BC72E
analogous
#4D2EC7 #9A2EC7 #C72EA7
triadic
#9A2EC7 #C79A2E #2EC79A
tetradic
#9A2EC7 #C74D2E #5BC72E #2EA7C7
square
#9A2EC7 #C74D2E #5BC72E #2EA7C7
split-complementary
#9A2EC7 #A7C72E #2EC74D
monochromatic
#4D1764 #742395 #9A2EC7 #B359D9 #CA8BE4

Accessibility & contrast

On white

5.85
#9A2EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#9A2EC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A2EC7
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2EC7#FFFFFF#000000##FFFFFF
##9A2EC71.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCB
Deuteranopia (green-blind)
#1D67C4
Tritanopia (blue-blind)
#95527A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9a2ec7;
/* rgb */ color: rgb(154, 46, 199);
/* oklch */ color: oklch(53.5% 0.227 313.4);
Tailwind
colors: {
  custom: {
    50: '#bd73d9',
    500: '#9a2ec7',
    950: '#000000',
  },
}
SCSS
$custom: #9a2ec7;
$custom-light: #bd73d9;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2ec7",
  "rgb": {
    "r": 154,
    "g": 46,
    "b": 199
  },
  "hsl": {
    "h": 282.353,
    "s": 62.449,
    "l": 48.039
  },
  "oklch": {
    "l": 0.5354,
    "c": 0.2271,
    "h": 313.4
  },
  "luminance": 0.12948
}

Semantic roles & 50–950 ramp

primary
#9A2EC7
secondary
#99CE83
accent
#E64272
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9A2EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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