#9A2F8A#9A2F8A

#9A2F8A is a mid, vivid purple. Relative luminance 0.107; OKLCH L 49.8% C 0.175 H 334.5°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#9A2F8A
RGBrgb(154, 47, 138)
HSLhsl(309, 53%, 39%)
HSVhsv(309, 69%, 60%)
CMYKcmyk(0%, 69.5%, 10.4%, 39.6%)
CIE-LABlab(39.14, 54.33, -27.59)
CIE-LCHlch(39.14, 60.94, 333.08°)
OKLaboklab(49.83% 0.1578 -0.0754)
OKLCHoklch(49.83% 0.175 334.5)
XYZxyz(18.9306, 10.7396, 25.1158)
Luminance0.1074 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2F8A #2F9A3F
analogous
#752F9A #9A2F8A #9A2F55
triadic
#9A2F8A #8A9A2F #2F8A9A
tetradic
#9A2F8A #9A752F #2F9A3F #2F559A
square
#9A2F8A #9A752F #2F9A3F #2F559A
split-complementary
#9A2F8A #559A2F #2F9A75
monochromatic
#3C1236 #6B2160 #9A2F8A #C541B1 #D370C5

Accessibility & contrast

On white

6.67
#9A2F8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#9A2F8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A2F8A
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2F8A#FFFFFF#000000##FFFFFF
##9A2F8A1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E528D
Deuteranopia (green-blind)
#526287
Tritanopia (blue-blind)
#A13758
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9a2f8a;
/* rgb */ color: rgb(154, 47, 138);
/* oklch */ color: oklch(49.8% 0.175 334.5);
Tailwind
colors: {
  custom: {
    50: '#bb71ac',
    500: '#9a2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #9a2f8a;
$custom-light: #bb71ac;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2f8a",
  "rgb": {
    "r": 154,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 308.972,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.49831,
    "c": 0.17491,
    "h": 334.5
  },
  "luminance": 0.10738
}

Semantic roles & 50–950 ramp

primary
#9A2F8A
secondary
#6ABB76
accent
#DD614B
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9A2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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