#731FA0#731FA0

#731FA0 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 44.1% C 0.195 H 310.0°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#731FA0
RGBrgb(115, 31, 160)
HSLhsl(279, 68%, 37%)
HSVhsv(279, 81%, 63%)
CMYKcmyk(28.1%, 80.6%, 0%, 37.3%)
CIE-LABlab(32.18, 55.80, -52.49)
CIE-LCHlch(32.18, 76.61, 316.75°)
OKLaboklab(44.06% 0.1251 -0.149)
OKLCHoklch(44.06% 0.195 310)
XYZxyz(13.9041, 7.1632, 33.9011)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731FA0 #4CA01F
analogous
#331FA0 #731FA0 #A01F8C
triadic
#731FA0 #A0731F #1FA073
tetradic
#731FA0 #A0331F #4CA01F #1F8CA0
square
#731FA0 #A0331F #4CA01F #1F8CA0
split-complementary
#731FA0 #8CA01F #1FA033
monochromatic
#290B39 #4E156D #731FA0 #9829D3 #B15ADF

Accessibility & contrast

On white

8.63
#731FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#731FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731FA0
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731FA0#FFFFFF#000000##FFFFFF
##731FA01.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A3
Deuteranopia (green-blind)
#004D9D
Tritanopia (blue-blind)
#6C4060
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #731fa0;
/* rgb */ color: rgb(115, 31, 160);
/* oklch */ color: oklch(44.1% 0.195 310.0);
Tailwind
colors: {
  custom: {
    50: '#a066bd',
    500: '#731fa0',
    950: '#000000',
  },
}
SCSS
$custom: #731fa0;
$custom-light: #a066bd;
$custom-dark: #000000;
JSON
{
  "hex": "#731fa0",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 279.07,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.44062,
    "c": 0.19456,
    "h": 310
  },
  "luminance": 0.07163
}

Semantic roles & 50–950 ramp

primary
#731FA0
secondary
#7DC358
accent
#EA3D7A
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #731FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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