#731172#731172

#731172 is a dark, vivid purple. Relative luminance 0.053; OKLCH L 39.7% C 0.168 H 328.7°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#731172
RGBrgb(115, 17, 114)
HSLhsl(301, 74%, 26%)
HSVhsv(301, 85%, 45%)
CMYKcmyk(0%, 85.2%, 0.9%, 54.9%)
CIE-LABlab(27.47, 51.08, -31.45)
CIE-LCHlch(27.47, 59.99, 328.38°)
OKLaboklab(39.71% 0.1432 -0.0872)
OKLCHoklch(39.71% 0.168 328.7)
XYZxyz(10.3078, 5.2614, 16.3890)
Luminance0.0526 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731172 #117312
analogous
#431173 #731172 #731141
triadic
#731172 #727311 #117273
tetradic
#731172 #734311 #117312 #114173
square
#731172 #734311 #117312 #114173
split-complementary
#731172 #417311 #117343
monochromatic
#1B041A #3E093D #731172 #A819A7 #DE21DC

Accessibility & contrast

On white

10.23
#731172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #731172
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731172#FFFFFF#000000##FFFFFF
##7311721.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003974
Deuteranopia (green-blind)
#304570
Tritanopia (blue-blind)
#772343
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #731172;
/* rgb */ color: rgb(115, 17, 114);
/* oklch */ color: oklch(39.7% 0.168 328.7);
Tailwind
colors: {
  custom: {
    50: '#9f5e9b',
    500: '#731172',
    950: '#000000',
  },
}
SCSS
$custom: #731172;
$custom-light: #9f5e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#731172",
  "rgb": {
    "r": 115,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 300.612,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.39711,
    "c": 0.16765,
    "h": 328.7
  },
  "luminance": 0.05261
}

Semantic roles & 50–950 ramp

primary
#731172
secondary
#36AA37
accent
#F13937
background
#FAF5F9
surface
#F4EAF2
border
#CEC6CC
text
#0F050E
muted
#7F797E

Preview Lab

Preview with #731172

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

Preview Lab → · Contrast checker → · Palette generator →

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