#731F9D#731F9D

#731F9D is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.8% C 0.192 H 311.0°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#731F9D
RGBrgb(115, 31, 157)
HSLhsl(280, 67%, 37%)
HSVhsv(280, 80%, 62%)
CMYKcmyk(26.8%, 80.3%, 0%, 38.4%)
CIE-LABlab(31.94, 55.16, -51.05)
CIE-LCHlch(31.94, 75.16, 317.22°)
OKLaboklab(43.83% 0.1258 -0.1447)
OKLCHoklch(43.83% 0.192 311)
XYZxyz(13.6448, 7.0595, 32.5356)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731F9D #499D1F
analogous
#341F9D #731F9D #9D1F88
triadic
#731F9D #9D731F #1F9D73
tetradic
#731F9D #9D341F #499D1F #1F889D
square
#731F9D #9D341F #499D1F #1F889D
split-complementary
#731F9D #889D1F #1F9D34
monochromatic
#280B37 #4E156A #731F9D #9829D0 #B158DE

Accessibility & contrast

On white

8.71
#731F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #731F9D
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731F9D#FFFFFF#000000##FFFFFF
##731F9D1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#004C9A
Tritanopia (blue-blind)
#6D3F5E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #731f9d;
/* rgb */ color: rgb(115, 31, 157);
/* oklch */ color: oklch(43.8% 0.192 311.0);
Tailwind
colors: {
  custom: {
    50: '#a066bb',
    500: '#731f9d',
    950: '#000000',
  },
}
SCSS
$custom: #731f9d;
$custom-light: #a066bb;
$custom-dark: #000000;
JSON
{
  "hex": "#731f9d",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 280,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.43825,
    "c": 0.19178,
    "h": 311
  },
  "luminance": 0.07059
}

Semantic roles & 50–950 ramp

primary
#731F9D
secondary
#7AC256
accent
#EA3E77
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #731F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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