#731D9F#731D9F

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

Color values

HEX#731D9F
RGBrgb(115, 29, 159)
HSLhsl(280, 69%, 37%)
HSVhsv(280, 82%, 62%)
CMYKcmyk(27.7%, 81.8%, 0%, 37.6%)
CIE-LABlab(31.87, 56.25, -52.39)
CIE-LCHlch(31.87, 76.87, 317.04°)
OKLaboklab(43.82% 0.1269 -0.1487)
OKLCHoklch(43.82% 0.195 310.5)
XYZxyz(13.7664, 7.0271, 33.4253)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731D9F #499F1D
analogous
#321D9F #731D9F #9F1D8A
triadic
#731D9F #9F731D #1D9F73
tetradic
#731D9F #9F321D #499F1D #1D8A9F
square
#731D9F #9F321D #499F1D #1D8A9F
split-complementary
#731D9F #8A9F1D #1D9F32
monochromatic
#280A37 #4E146B #731D9F #9826D3 #B156E0

Accessibility & contrast

On white

8.73
#731D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #731D9F
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731D9F#FFFFFF#000000##FFFFFF
##731D9F1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #731d9f;
/* rgb */ color: rgb(115, 29, 159);
/* oklch */ color: oklch(43.8% 0.195 310.5);
Tailwind
colors: {
  custom: {
    50: '#a065bc',
    500: '#731d9f',
    950: '#000000',
  },
}
SCSS
$custom: #731d9f;
$custom-light: #a065bc;
$custom-dark: #000000;
JSON
{
  "hex": "#731d9f",
  "rgb": {
    "r": 115,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 279.692,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.43823,
    "c": 0.19547,
    "h": 310.5
  },
  "luminance": 0.07027
}

Semantic roles & 50–950 ramp

primary
#731D9F
secondary
#7AC454
accent
#EC3C77
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #731D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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