#9F2A9A#9F2A9A

#9F2A9A is a mid, vivid purple. Relative luminance 0.114; OKLCH L 51.0% C 0.196 H 329.9°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#9F2A9A
RGBrgb(159, 42, 154)
HSLhsl(303, 58%, 39%)
HSVhsv(303, 74%, 62%)
CMYKcmyk(0%, 73.6%, 3.1%, 37.6%)
CIE-LABlab(40.18, 59.91, -35.62)
CIE-LCHlch(40.18, 69.70, 329.26°)
OKLaboklab(51.02% 0.1694 -0.0984)
OKLCHoklch(51.02% 0.196 329.9)
XYZxyz(20.9587, 11.3616, 31.6547)
Luminance0.1136 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2A9A #2A9F2F
analogous
#6A2A9F #9F2A9A #9F2A60
triadic
#9F2A9A #9A9F2A #2A9A9F
tetradic
#9F2A9A #9F6A2A #2A9F2F #2A609F
square
#9F2A9A #9F6A2A #2A9F2F #2A609F
split-complementary
#9F2A9A #609F2A #2A9F6A
monochromatic
#3E103C #6F1D6B #9F2A9A #CB3BC5 #D86BD3

Accessibility & contrast

On white

6.42
#9F2A9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#9F2A9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2A9A
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2A9A#FFFFFF#000000##FFFFFF
##9F2A9A1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B559D
Deuteranopia (green-blind)
#4D6497
Tritanopia (blue-blind)
#A53A60
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9f2a9a;
/* rgb */ color: rgb(159, 42, 154);
/* oklch */ color: oklch(51.0% 0.196 329.9);
Tailwind
colors: {
  custom: {
    50: '#bf70b8',
    500: '#9f2a9a',
    950: '#000000',
  },
}
SCSS
$custom: #9f2a9a;
$custom-light: #bf70b8;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2a9a",
  "rgb": {
    "r": 159,
    "g": 42,
    "b": 154
  },
  "hsl": {
    "h": 302.564,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.51017,
    "c": 0.1959,
    "h": 329.9
  },
  "luminance": 0.1136
}

Semantic roles & 50–950 ramp

primary
#9F2A9A
secondary
#66BF6A
accent
#E14D46
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9F2A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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