#731271#731271

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

Color values

HEX#731271
RGBrgb(115, 18, 113)
HSLhsl(301, 73%, 26%)
HSVhsv(301, 84%, 45%)
CMYKcmyk(0%, 84.3%, 1.7%, 54.9%)
CIE-LABlab(27.49, 50.66, -30.76)
CIE-LCHlch(27.49, 59.27, 328.73°)
OKLaboklab(39.71% 0.1425 -0.0853)
OKLCHoklch(39.71% 0.166 329.1)
XYZxyz(10.2671, 5.2705, 16.0961)
Luminance0.0527 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731271 #127314
analogous
#441273 #731271 #731240
triadic
#731271 #717312 #127173
tetradic
#731271 #734412 #127314 #124073
square
#731271 #734412 #127314 #124073
split-complementary
#731271 #407312 #127344
monochromatic
#1A041A #3E0A3D #731271 #A81AA5 #DD23D9

Accessibility & contrast

On white

10.22
#731271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #731271
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731271#FFFFFF#000000##FFFFFF
##7312711.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #731271;
/* rgb */ color: rgb(115, 18, 113);
/* oklch */ color: oklch(39.7% 0.166 329.1);
Tailwind
colors: {
  custom: {
    50: '#9f5f9a',
    500: '#731271',
    950: '#000000',
  },
}
SCSS
$custom: #731271;
$custom-light: #9f5f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#731271",
  "rgb": {
    "r": 115,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 301.237,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.39709,
    "c": 0.16606,
    "h": 329.1
  },
  "luminance": 0.0527
}

Semantic roles & 50–950 ramp

primary
#731271
secondary
#37AA39
accent
#F03C38
background
#FAF5F9
surface
#F4EAF2
border
#CEC6CC
text
#0F050E
muted
#7F797E

Preview Lab

Preview with #731271

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

Preview Lab → · Contrast checker → · Palette generator →

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