#9A2EC2#9A2EC2

#9A2EC2 is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.2% C 0.223 H 314.8°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#9A2EC2
RGBrgb(154, 46, 194)
HSLhsl(284, 62%, 47%)
HSVhsv(284, 76%, 76%)
CMYKcmyk(20.6%, 76.3%, 0%, 23.9%)
CIE-LABlab(42.34, 64.74, -55.97)
CIE-LCHlch(42.34, 85.58, 319.16°)
OKLaboklab(53.19% 0.157 -0.158)
OKLCHoklch(53.19% 0.223 314.8)
XYZxyz(24.0394, 12.7199, 52.2174)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2EC2 #56C22E
analogous
#502EC2 #9A2EC2 #C22EA0
triadic
#9A2EC2 #C29A2E #2EC29A
tetradic
#9A2EC2 #C2502E #56C22E #2EA0C2
square
#9A2EC2 #C2502E #56C22E #2EA0C2
split-complementary
#9A2EC2 #A0C22E #2EC250
monochromatic
#4B175F #732291 #9A2EC2 #B456D7 #CA88E3

Accessibility & contrast

On white

5.93
#9A2EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#9A2EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A2EC2
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2EC2#FFFFFF#000000##FFFFFF
##9A2EC21.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC6
Deuteranopia (green-blind)
#2667BF
Tritanopia (blue-blind)
#965077
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9a2ec2;
/* rgb */ color: rgb(154, 46, 194);
/* oklch */ color: oklch(53.2% 0.223 314.8);
Tailwind
colors: {
  custom: {
    50: '#bc73d5',
    500: '#9a2ec2',
    950: '#000000',
  },
}
SCSS
$custom: #9a2ec2;
$custom-light: #bc73d5;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2ec2",
  "rgb": {
    "r": 154,
    "g": 46,
    "b": 194
  },
  "hsl": {
    "h": 283.784,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.53186,
    "c": 0.22273,
    "h": 314.8
  },
  "luminance": 0.12719
}

Semantic roles & 50–950 ramp

primary
#9A2EC2
secondary
#94CC7F
accent
#E5436F
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #9A2EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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