#731171#731171

#731171 is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.6% C 0.167 H 329.1°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#731171
RGBrgb(115, 17, 113)
HSLhsl(301, 74%, 26%)
HSVhsv(301, 85%, 45%)
CMYKcmyk(0%, 85.2%, 1.7%, 54.9%)
CIE-LABlab(27.40, 50.91, -30.90)
CIE-LCHlch(27.40, 59.56, 328.74°)
OKLaboklab(39.65% 0.1432 -0.0856)
OKLCHoklch(39.65% 0.167 329.1)
XYZxyz(10.2512, 5.2388, 16.0909)
Luminance0.0524 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731171 #117313
analogous
#441173 #731171 #731140
triadic
#731171 #717311 #117173
tetradic
#731171 #734411 #117313 #114073
square
#731171 #734411 #117313 #114073
split-complementary
#731171 #407311 #117344
monochromatic
#1B041A #3E093D #731171 #A819A5 #DE21DA

Accessibility & contrast

On white

10.26
#731171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#731171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731171
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731171#FFFFFF#000000##FFFFFF
##7311711.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#31456F
Tritanopia (blue-blind)
#772242
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #731171;
/* rgb */ color: rgb(115, 17, 113);
/* oklch */ color: oklch(39.6% 0.167 329.1);
Tailwind
colors: {
  custom: {
    50: '#9f5e9a',
    500: '#731171',
    950: '#000000',
  },
}
SCSS
$custom: #731171;
$custom-light: #9f5e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#731171",
  "rgb": {
    "r": 115,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 301.224,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.39647,
    "c": 0.16689,
    "h": 329.1
  },
  "luminance": 0.05238
}

Semantic roles & 50–950 ramp

primary
#731171
secondary
#36AA38
accent
#F13B37
background
#FAF5F9
surface
#F4EAF2
border
#CEC6CC
text
#0F050E
muted
#7F797E

Preview Lab

Preview with #731171

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

Preview Lab → · Contrast checker → · Palette generator →

#731171 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva