#731E9E#731E9E

#731E9E is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.8% C 0.194 H 310.7°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#731E9E
RGBrgb(115, 30, 158)
HSLhsl(280, 68%, 37%)
HSVhsv(280, 81%, 62%)
CMYKcmyk(27.2%, 81%, 0%, 38%)
CIE-LABlab(31.90, 55.71, -51.72)
CIE-LCHlch(31.90, 76.02, 317.13°)
OKLaboklab(43.82% 0.1264 -0.1467)
OKLCHoklch(43.82% 0.194 310.7)
XYZxyz(13.7049, 7.0423, 32.9785)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731E9E #499E1E
analogous
#331E9E #731E9E #9E1E89
triadic
#731E9E #9E731E #1E9E73
tetradic
#731E9E #9E331E #499E1E #1E899E
square
#731E9E #9E331E #499E1E #1E899E
split-complementary
#731E9E #899E1E #1E9E33
monochromatic
#280A37 #4E146B #731E9E #9828D1 #B157DF

Accessibility & contrast

On white

8.72
#731E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#731E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731E9E
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731E9E#FFFFFF#000000##FFFFFF
##731E9E1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#004C9B
Tritanopia (blue-blind)
#6D3F5F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #731e9e;
/* rgb */ color: rgb(115, 30, 158);
/* oklch */ color: oklch(43.8% 0.194 310.7);
Tailwind
colors: {
  custom: {
    50: '#a065bb',
    500: '#731e9e',
    950: '#000000',
  },
}
SCSS
$custom: #731e9e;
$custom-light: #a065bb;
$custom-dark: #000000;
JSON
{
  "hex": "#731e9e",
  "rgb": {
    "r": 115,
    "g": 30,
    "b": 158
  },
  "hsl": {
    "h": 279.844,
    "s": 68.085,
    "l": 36.863
  },
  "oklch": {
    "l": 0.43822,
    "c": 0.19365,
    "h": 310.7
  },
  "luminance": 0.07042
}

Semantic roles & 50–950 ramp

primary
#731E9E
secondary
#7AC355
accent
#EB3D77
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #731E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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