#731F8A#731F8A

#731F8A is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.4% C 0.174 H 317.8°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#731F8A
RGBrgb(115, 31, 138)
HSLhsl(287, 63%, 33%)
HSVhsv(287, 78%, 54%)
CMYKcmyk(16.7%, 77.5%, 0%, 45.9%)
CIE-LABlab(30.55, 51.23, -41.64)
CIE-LCHlch(30.55, 66.01, 320.89°)
OKLaboklab(42.4% 0.1292 -0.1171)
OKLCHoklch(42.4% 0.174 317.8)
XYZxyz(12.1470, 6.4603, 24.6470)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731F8A #368A1F
analogous
#3D1F8A #731F8A #8A1F6B
triadic
#731F8A #8A731F #1F8A73
tetradic
#731F8A #8A3D1F #368A1F #1F6B8A
square
#731F8A #8A3D1F #368A1F #1F6B8A
split-complementary
#731F8A #6B8A1F #1F8A3D
monochromatic
#200926 #491458 #731F8A #9D2ABC #B94CD7

Accessibility & contrast

On white

9.16
#731F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#731F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731F8A
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731F8A#FFFFFF#000000##FFFFFF
##731F8A1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#234A88
Tritanopia (blue-blind)
#723653
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #731f8a;
/* rgb */ color: rgb(115, 31, 138);
/* oklch */ color: oklch(42.4% 0.174 317.8);
Tailwind
colors: {
  custom: {
    50: '#9f65ad',
    500: '#731f8a',
    950: '#000000',
  },
}
SCSS
$custom: #731f8a;
$custom-light: #9f65ad;
$custom-dark: #000000;
JSON
{
  "hex": "#731f8a",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 287.103,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.424,
    "c": 0.1744,
    "h": 317.8
  },
  "luminance": 0.0646
}

Semantic roles & 50–950 ramp

primary
#731F8A
secondary
#63BA4B
accent
#E64165
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #731F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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