#971F9C#971F9C

#971F9C is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.1% C 0.204 H 326.3°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#971F9C
RGBrgb(151, 31, 156)
HSLhsl(298, 67%, 37%)
HSVhsv(298, 80%, 61%)
CMYKcmyk(3.2%, 80.1%, 0%, 38.8%)
CIE-LABlab(37.77, 61.87, -40.75)
CIE-LCHlch(37.77, 74.08, 326.63°)
OKLaboklab(49.07% 0.1702 -0.1134)
OKLCHoklch(49.07% 0.204 326.3)
XYZxyz(19.2529, 9.9609, 32.3546)
Luminance0.0996 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971F9C #249C1F
analogous
#591F9C #971F9C #9C1F63
triadic
#971F9C #9C971F #1F9C97
tetradic
#971F9C #9C591F #249C1F #1F639C
square
#971F9C #9C591F #249C1F #1F639C
split-complementary
#971F9C #639C1F #1F9C59
monochromatic
#340B36 #661569 #971F9C #C829CF #D858DE

Accessibility & contrast

On white

7.02
#971F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#971F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #971F9C
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971F9C#FFFFFF#000000##FFFFFF
##971F9C1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9F
Deuteranopia (green-blind)
#3F5E99
Tritanopia (blue-blind)
#9B375E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #971f9c;
/* rgb */ color: rgb(151, 31, 156);
/* oklch */ color: oklch(49.1% 0.204 326.3);
Tailwind
colors: {
  custom: {
    50: '#ba6bba',
    500: '#971f9c',
    950: '#000000',
  },
}
SCSS
$custom: #971f9c;
$custom-light: #ba6bba;
$custom-dark: #000000;
JSON
{
  "hex": "#971f9c",
  "rgb": {
    "r": 151,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 297.6,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.49074,
    "c": 0.20448,
    "h": 326.3
  },
  "luminance": 0.0996
}

Semantic roles & 50–950 ramp

primary
#971F9C
secondary
#5AC155
accent
#EA3E45
background
#FBF6FB
surface
#F7ECF6
border
#D0C7D0
text
#120711
muted
#817A80

Preview Lab

Preview with #971F9C

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

Preview Lab → · Contrast checker → · Palette generator →

#971F9C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva