#731C8E#731C8E

#731C8E is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.4% C 0.181 H 316.5°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#731C8E
RGBrgb(115, 28, 142)
HSLhsl(286, 67%, 33%)
HSVhsv(286, 80%, 56%)
CMYKcmyk(19%, 80.3%, 0%, 44.3%)
CIE-LABlab(30.47, 53.06, -44.24)
CIE-LCHlch(30.47, 69.09, 320.18°)
OKLaboklab(42.44% 0.1313 -0.1247)
OKLCHoklch(42.44% 0.181 316.5)
XYZxyz(12.3672, 6.4289, 26.1754)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731C8E #378E1C
analogous
#3A1C8E #731C8E #8E1C70
triadic
#731C8E #8E731C #1C8E73
tetradic
#731C8E #8E3A1C #378E1C #1C708E
square
#731C8E #8E3A1C #378E1C #1C708E
split-complementary
#731C8E #708E1C #1C8E3A
monochromatic
#200828 #4A125B #731C8E #9C26C1 #B949DB

Accessibility & contrast

On white

9.19
#731C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#731C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731C8E
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731C8E#FFFFFF#000000##FFFFFF
##731C8E1.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#1C4A8C
Tritanopia (blue-blind)
#713655
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #731c8e;
/* rgb */ color: rgb(115, 28, 142);
/* oklch */ color: oklch(42.4% 0.181 316.5);
Tailwind
colors: {
  custom: {
    50: '#9f64b0',
    500: '#731c8e',
    950: '#000000',
  },
}
SCSS
$custom: #731c8e;
$custom-light: #9f64b0;
$custom-dark: #000000;
JSON
{
  "hex": "#731c8e",
  "rgb": {
    "r": 115,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 285.789,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.42437,
    "c": 0.18109,
    "h": 316.5
  },
  "luminance": 0.06428
}

Semantic roles & 50–950 ramp

primary
#731C8E
secondary
#64BD49
accent
#EA3E67
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #731C8E

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

Preview Lab → · Contrast checker → · Palette generator →

#731C8E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva