#9A2FA1#9A2FA1

#9A2FA1 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 51.1% C 0.193 H 325.3°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#9A2FA1
RGBrgb(154, 47, 161)
HSLhsl(296, 55%, 41%)
HSVhsv(296, 71%, 63%)
CMYKcmyk(4.3%, 70.8%, 0%, 36.9%)
CIE-LABlab(40.37, 58.20, -39.59)
CIE-LCHlch(40.37, 70.39, 325.78°)
OKLaboklab(51.12% 0.1589 -0.11)
OKLCHoklch(51.12% 0.193 325.3)
XYZxyz(20.7755, 11.4776, 34.8324)
Luminance0.1148 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2FA1 #36A12F
analogous
#612FA1 #9A2FA1 #A12F6F
triadic
#9A2FA1 #A19A2F #2FA19A
tetradic
#9A2FA1 #A1612F #36A12F #2F6FA1
square
#9A2FA1 #A1612F #36A12F #2F6FA1
split-complementary
#9A2FA1 #6FA12F #2FA161
monochromatic
#3F1342 #6D2172 #9A2FA1 #C045C9 #D074D6

Accessibility & contrast

On white

6.37
#9A2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#9A2FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A2FA1
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2FA1#FFFFFF#000000##FFFFFF
##9A2FA11.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1257A4
Deuteranopia (green-blind)
#46649E
Tritanopia (blue-blind)
#9E4265
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9a2fa1;
/* rgb */ color: rgb(154, 47, 161);
/* oklch */ color: oklch(51.1% 0.193 325.3);
Tailwind
colors: {
  custom: {
    50: '#bb72bd',
    500: '#9a2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #9a2fa1;
$custom-light: #bb72bd;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2fa1",
  "rgb": {
    "r": 154,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 296.316,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.51121,
    "c": 0.19331,
    "h": 325.3
  },
  "luminance": 0.11476
}

Semantic roles & 50–950 ramp

primary
#9A2FA1
secondary
#73BE6E
accent
#DE4A53
background
#FBF7FB
surface
#F7EDF6
border
#D0C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9A2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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