#9A2BA2#9A2BA2

#9A2BA2 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.8% C 0.199 H 325.0°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#9A2BA2
RGBrgb(154, 43, 162)
HSLhsl(296, 58%, 40%)
HSVhsv(296, 73%, 64%)
CMYKcmyk(4.9%, 73.5%, 0%, 36.5%)
CIE-LABlab(39.93, 59.81, -40.90)
CIE-LCHlch(39.93, 72.46, 325.64°)
OKLaboklab(50.82% 0.1629 -0.1138)
OKLCHoklch(50.82% 0.199 325)
XYZxyz(20.7114, 11.2078, 35.2478)
Luminance0.1121 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2BA2 #33A22B
analogous
#5E2BA2 #9A2BA2 #A22B6F
triadic
#9A2BA2 #A29A2B #2BA29A
tetradic
#9A2BA2 #A25E2B #33A22B #2B6FA2
square
#9A2BA2 #A25E2B #33A22B #2B6FA2
split-complementary
#9A2BA2 #6FA22B #2BA25E
monochromatic
#3E1141 #6C1E72 #9A2BA2 #C23ECC #D26FD9

Accessibility & contrast

On white

6.48
#9A2BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#9A2BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A2BA2
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2BA2#FFFFFF#000000##FFFFFF
##9A2BA21.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0255A5
Deuteranopia (green-blind)
#44639F
Tritanopia (blue-blind)
#9D3F64
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9a2ba2;
/* rgb */ color: rgb(154, 43, 162);
/* oklch */ color: oklch(50.8% 0.199 325.0);
Tailwind
colors: {
  custom: {
    50: '#bb70be',
    500: '#9a2ba2',
    950: '#000000',
  },
}
SCSS
$custom: #9a2ba2;
$custom-light: #bb70be;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2ba2",
  "rgb": {
    "r": 154,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 295.966,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50822,
    "c": 0.19872,
    "h": 325
  },
  "luminance": 0.11206
}

Semantic roles & 50–950 ramp

primary
#9A2BA2
secondary
#6FC069
accent
#E14751
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9A2BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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