#9A2F97#9A2F97

#9A2F97 is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.5% C 0.185 H 329.1°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#9A2F97
RGBrgb(154, 47, 151)
HSLhsl(302, 53%, 39%)
HSVhsv(302, 69%, 60%)
CMYKcmyk(0%, 69.5%, 1.9%, 39.6%)
CIE-LABlab(39.81, 56.47, -34.45)
CIE-LCHlch(39.81, 66.14, 328.61°)
OKLaboklab(50.54% 0.1588 -0.0951)
OKLCHoklch(50.54% 0.185 329.1)
XYZxyz(19.9287, 11.1389, 30.3725)
Luminance0.1114 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2F97 #2F9A32
analogous
#682F9A #9A2F97 #9A2F62
triadic
#9A2F97 #979A2F #2F979A
tetradic
#9A2F97 #9A682F #2F9A32 #2F629A
square
#9A2F97 #9A682F #2F9A32 #2F629A
split-complementary
#9A2F97 #629A2F #2F9A68
monochromatic
#3C123B #6B2169 #9A2F97 #C541C1 #D370D1

Accessibility & contrast

On white

6.51
#9A2F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#9A2F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A2F97
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2F97#FFFFFF#000000##FFFFFF
##9A2F971.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22559A
Deuteranopia (green-blind)
#4C6394
Tritanopia (blue-blind)
#9F3D5F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9a2f97;
/* rgb */ color: rgb(154, 47, 151);
/* oklch */ color: oklch(50.5% 0.185 329.1);
Tailwind
colors: {
  custom: {
    50: '#bb71b6',
    500: '#9a2f97',
    950: '#000000',
  },
}
SCSS
$custom: #9a2f97;
$custom-light: #bb71b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2f97",
  "rgb": {
    "r": 154,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 301.682,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50538,
    "c": 0.1851,
    "h": 329.1
  },
  "luminance": 0.11137
}

Semantic roles & 50–950 ramp

primary
#9A2F97
secondary
#6ABB6C
accent
#DD4F4B
background
#FBF7FB
surface
#F7EDF6
border
#D0C8D0
text
#120811
muted
#817B80

Preview Lab

Preview with #9A2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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