#731F9F#731F9F

#731F9F is a dark, vivid violet. Relative luminance 0.071; OKLCH L 44.0% C 0.194 H 310.3°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#731F9F
RGBrgb(115, 31, 159)
HSLhsl(279, 67%, 37%)
HSVhsv(279, 81%, 62%)
CMYKcmyk(27.7%, 80.5%, 0%, 37.6%)
CIE-LABlab(32.10, 55.59, -52.01)
CIE-LCHlch(32.10, 76.13, 316.90°)
OKLaboklab(43.98% 0.1254 -0.1476)
OKLCHoklch(43.98% 0.194 310.3)
XYZxyz(13.8170, 7.1283, 33.4422)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731F9F #4B9F1F
analogous
#331F9F #731F9F #9F1F8B
triadic
#731F9F #9F731F #1F9F73
tetradic
#731F9F #9F331F #4B9F1F #1F8B9F
square
#731F9F #9F331F #4B9F1F #1F8B9F
split-complementary
#731F9F #8B9F1F #1F9F33
monochromatic
#290B39 #4E156C #731F9F #9829D2 #B15ADF

Accessibility & contrast

On white

8.66
#731F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #731F9F
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731F9F#FFFFFF#000000##FFFFFF
##731F9F1.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#004D9C
Tritanopia (blue-blind)
#6D405F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #731f9f;
/* rgb */ color: rgb(115, 31, 159);
/* oklch */ color: oklch(44.0% 0.194 310.3);
Tailwind
colors: {
  custom: {
    50: '#a066bc',
    500: '#731f9f',
    950: '#000000',
  },
}
SCSS
$custom: #731f9f;
$custom-light: #a066bc;
$custom-dark: #000000;
JSON
{
  "hex": "#731f9f",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 279.375,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.43982,
    "c": 0.19363,
    "h": 310.3
  },
  "luminance": 0.07128
}

Semantic roles & 50–950 ramp

primary
#731F9F
secondary
#7CC357
accent
#EA3E79
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #731F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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