#9A2FA6#9A2FA6

#9A2FA6 is a mid, vivid purple. Relative luminance 0.117; OKLCH L 51.4% C 0.198 H 323.5°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#9A2FA6
RGBrgb(154, 47, 166)
HSLhsl(294, 56%, 42%)
HSVhsv(294, 72%, 65%)
CMYKcmyk(7.2%, 71.7%, 0%, 34.9%)
CIE-LABlab(40.67, 59.10, -42.12)
CIE-LCHlch(40.67, 72.57, 324.52°)
OKLaboklab(51.43% 0.1588 -0.1174)
OKLCHoklch(51.43% 0.198 323.5)
XYZxyz(21.2252, 11.6575, 37.2011)
Luminance0.1166 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2FA6 #3BA62F
analogous
#5F2FA6 #9A2FA6 #A62F77
triadic
#9A2FA6 #A69A2F #2FA69A
tetradic
#9A2FA6 #A65F2F #3BA62F #2F77A6
square
#9A2FA6 #A65F2F #3BA62F #2F77A6
split-complementary
#9A2FA6 #77A62F #2FA65F
monochromatic
#421447 #6E2176 #9A2FA6 #BE47CB #CF77D8

Accessibility & contrast

On white

6.30
#9A2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#9A2FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A2FA6
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2FA6#FFFFFF#000000##FFFFFF
##9A2FA61.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0358A9
Deuteranopia (green-blind)
#4364A3
Tritanopia (blue-blind)
#9D4468
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9a2fa6;
/* rgb */ color: rgb(154, 47, 166);
/* oklch */ color: oklch(51.4% 0.198 323.5);
Tailwind
colors: {
  custom: {
    50: '#bb72c1',
    500: '#9a2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #9a2fa6;
$custom-light: #bb72c1;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2fa6",
  "rgb": {
    "r": 154,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 293.95,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.51425,
    "c": 0.19751,
    "h": 323.5
  },
  "luminance": 0.11656
}

Semantic roles & 50–950 ramp

primary
#9A2FA6
secondary
#78C170
accent
#DF4958
background
#FBF7FB
surface
#F7EDF7
border
#D0C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9A2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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