#9A2FA7#9A2FA7

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

Color values

HEX#9A2FA7
RGBrgb(154, 47, 167)
HSLhsl(294, 56%, 42%)
HSVhsv(294, 72%, 65%)
CMYKcmyk(7.8%, 71.9%, 0%, 34.5%)
CIE-LABlab(40.73, 59.28, -42.62)
CIE-LCHlch(40.73, 73.01, 324.28°)
OKLaboklab(51.49% 0.1588 -0.1189)
OKLCHoklch(51.49% 0.198 323.2)
XYZxyz(21.3173, 11.6943, 37.6861)
Luminance0.1169 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2FA7 #3CA72F
analogous
#5E2FA7 #9A2FA7 #A72F78
triadic
#9A2FA7 #A79A2F #2FA79A
tetradic
#9A2FA7 #A75E2F #3CA72F #2F78A7
square
#9A2FA7 #A75E2F #3CA72F #2F78A7
split-complementary
#9A2FA7 #78A72F #2FA75E
monochromatic
#421447 #6E2277 #9A2FA7 #BD48CB #CE78D9

Accessibility & contrast

On white

6.29
#9A2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#9A2FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A2FA7
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2FA7#FFFFFF#000000##FFFFFF
##9A2FA71.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AA
Deuteranopia (green-blind)
#4264A4
Tritanopia (blue-blind)
#9C4468
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9a2fa7;
/* rgb */ color: rgb(154, 47, 167);
/* oklch */ color: oklch(51.5% 0.198 323.2);
Tailwind
colors: {
  custom: {
    50: '#bb72c2',
    500: '#9a2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #9a2fa7;
$custom-light: #bb72c2;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2fa7",
  "rgb": {
    "r": 154,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 293.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51487,
    "c": 0.19835,
    "h": 323.2
  },
  "luminance": 0.11693
}

Semantic roles & 50–950 ramp

primary
#9A2FA7
secondary
#7AC171
accent
#DF4859
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120912
muted
#817B81

Preview Lab

Preview with #9A2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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