#731F8E#731F8E

#731F8E is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.178 H 316.3°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#731F8E
RGBrgb(115, 31, 142)
HSLhsl(285, 64%, 34%)
HSVhsv(285, 78%, 56%)
CMYKcmyk(19%, 78.2%, 0%, 44.3%)
CIE-LABlab(30.83, 52.03, -43.66)
CIE-LCHlch(30.83, 67.93, 320.00°)
OKLaboklab(42.69% 0.1287 -0.123)
OKLCHoklch(42.69% 0.178 316.3)
XYZxyz(12.4419, 6.5783, 26.2003)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731F8E #3A8E1F
analogous
#3B1F8E #731F8E #8E1F72
triadic
#731F8E #8E731F #1F8E73
tetradic
#731F8E #8E3B1F #3A8E1F #1F728E
square
#731F8E #8E3B1F #3A8E1F #1F728E
split-complementary
#731F8E #728E1F #1F8E3B
monochromatic
#22092A #4A145C #731F8E #9C2AC0 #B74FD9

Accessibility & contrast

On white

9.07
#731F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#731F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731F8E
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731F8E#FFFFFF#000000##FFFFFF
##731F8E1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#1E4B8C
Tritanopia (blue-blind)
#713856
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #731f8e;
/* rgb */ color: rgb(115, 31, 142);
/* oklch */ color: oklch(42.7% 0.178 316.3);
Tailwind
colors: {
  custom: {
    50: '#9f65b0',
    500: '#731f8e',
    950: '#000000',
  },
}
SCSS
$custom: #731f8e;
$custom-light: #9f65b0;
$custom-dark: #000000;
JSON
{
  "hex": "#731f8e",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 285.405,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.42689,
    "c": 0.17804,
    "h": 316.3
  },
  "luminance": 0.06578
}

Semantic roles & 50–950 ramp

primary
#731F8E
secondary
#68BB4D
accent
#E74169
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #731F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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