#971BB4#971BB4

#971BB4 is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.4% C 0.226 H 318.6°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#971BB4
RGBrgb(151, 27, 180)
HSLhsl(289, 74%, 41%)
HSVhsv(289, 85%, 71%)
CMYKcmyk(16.1%, 85%, 0%, 29.4%)
CIE-LABlab(39.00, 67.07, -53.15)
CIE-LCHlch(39.00, 85.57, 321.60°)
OKLaboklab(50.44% 0.1698 -0.1497)
OKLCHoklch(50.44% 0.226 318.6)
XYZxyz(21.3915, 10.6595, 44.1019)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#971BB4 #38B41B
analogous
#4A1BB4 #971BB4 #B41B85
triadic
#971BB4 #B4971B #1BB497
tetradic
#971BB4 #B44A1B #38B41B #1B85B4
square
#971BB4 #B44A1B #38B41B #1B85B4
split-complementary
#971BB4 #85B41B #1BB44A
monochromatic
#3E0B4A #6A137F #971BB4 #BE2DDF #CE62E7

Accessibility & contrast

On white

6.71
#971BB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#971BB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #971BB4
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##971BB4#FFFFFF#000000##FFFFFF
##971BB41.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#265FB1
Tritanopia (blue-blind)
#96416B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #971bb4;
/* rgb */ color: rgb(151, 27, 180);
/* oklch */ color: oklch(50.4% 0.226 318.6);
Tailwind
colors: {
  custom: {
    50: '#ba6bcb',
    500: '#971bb4',
    950: '#000000',
  },
}
SCSS
$custom: #971bb4;
$custom-light: #ba6bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#971bb4",
  "rgb": {
    "r": 151,
    "g": 27,
    "b": 180
  },
  "hsl": {
    "h": 288.627,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.50441,
    "c": 0.22632,
    "h": 318.6
  },
  "luminance": 0.10658
}

Semantic roles & 50–950 ramp

primary
#971BB4
secondary
#73CC5F
accent
#F1375A
background
#FCF6FC
surface
#F8ECF9
border
#D1C7D2
text
#120813
muted
#817A82

Preview Lab

Preview with #971BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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