#731F9B#731F9B

#731F9B is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.7% C 0.190 H 311.7°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#731F9B
RGBrgb(115, 31, 155)
HSLhsl(281, 67%, 36%)
HSVhsv(281, 80%, 61%)
CMYKcmyk(25.8%, 80%, 0%, 39.2%)
CIE-LABlab(31.79, 54.74, -50.08)
CIE-LCHlch(31.79, 74.19, 317.54°)
OKLaboklab(43.67% 0.1263 -0.1419)
OKLCHoklch(43.67% 0.19 311.7)
XYZxyz(13.4755, 6.9917, 31.6437)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731F9B #479B1F
analogous
#351F9B #731F9B #9B1F85
triadic
#731F9B #9B731F #1F9B73
tetradic
#731F9B #9B351F #479B1F #1F859B
square
#731F9B #9B351F #479B1F #1F859B
split-complementary
#731F9B #859B1F #1F9B35
monochromatic
#270B35 #4D1568 #731F9B #9929CE #B257DD

Accessibility & contrast

On white

8.76
#731F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#731F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731F9B
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731F9B#FFFFFF#000000##FFFFFF
##731F9B1.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#004C98
Tritanopia (blue-blind)
#6E3E5D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #731f9b;
/* rgb */ color: rgb(115, 31, 155);
/* oklch */ color: oklch(43.7% 0.190 311.7);
Tailwind
colors: {
  custom: {
    50: '#a065b9',
    500: '#731f9b',
    950: '#000000',
  },
}
SCSS
$custom: #731f9b;
$custom-light: #a065b9;
$custom-dark: #000000;
JSON
{
  "hex": "#731f9b",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 280.645,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.43669,
    "c": 0.18994,
    "h": 311.7
  },
  "luminance": 0.06991
}

Semantic roles & 50–950 ramp

primary
#731F9B
secondary
#78C155
accent
#EA3E75
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #731F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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