#731F8F#731F8F

#731F8F is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.8% C 0.179 H 315.9°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#731F8F
RGBrgb(115, 31, 143)
HSLhsl(285, 64%, 34%)
HSVhsv(285, 78%, 56%)
CMYKcmyk(19.6%, 78.3%, 0%, 43.9%)
CIE-LABlab(30.90, 52.24, -44.16)
CIE-LCHlch(30.90, 68.41, 319.79°)
OKLaboklab(42.76% 0.1285 -0.1245)
OKLCHoklch(42.76% 0.179 315.9)
XYZxyz(12.5174, 6.6085, 26.5975)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731F8F #3B8F1F
analogous
#3B1F8F #731F8F #8F1F73
triadic
#731F8F #8F731F #1F8F73
tetradic
#731F8F #8F3B1F #3B8F1F #1F738F
square
#731F8F #8F3B1F #3B8F1F #1F738F
split-complementary
#731F8F #738F1F #1F8F3B
monochromatic
#22092A #4B145D #731F8F #9B2AC1 #B74FD9

Accessibility & contrast

On white

9.05
#731F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #731F8F
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731F8F#FFFFFF#000000##FFFFFF
##731F8F1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #731f8f;
/* rgb */ color: rgb(115, 31, 143);
/* oklch */ color: oklch(42.8% 0.179 315.9);
Tailwind
colors: {
  custom: {
    50: '#9f65b0',
    500: '#731f8f',
    950: '#000000',
  },
}
SCSS
$custom: #731f8f;
$custom-light: #9f65b0;
$custom-dark: #000000;
JSON
{
  "hex": "#731f8f",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 285,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.42762,
    "c": 0.17894,
    "h": 315.9
  },
  "luminance": 0.06608
}

Semantic roles & 50–950 ramp

primary
#731F8F
secondary
#69BC4E
accent
#E7406A
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#0F0611
muted
#7F7A80

Preview Lab

Preview with #731F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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