#731BA6#731BA6

#731BA6 is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.2% C 0.204 H 308.4°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#731BA6
RGBrgb(115, 27, 166)
HSLhsl(278, 72%, 38%)
HSVhsv(278, 84%, 65%)
CMYKcmyk(30.7%, 83.7%, 0%, 34.9%)
CIE-LABlab(32.22, 58.37, -56.05)
CIE-LCHlch(32.22, 80.92, 316.16°)
OKLaboklab(44.24% 0.1265 -0.1594)
OKLCHoklch(44.24% 0.204 308.4)
XYZxyz(14.3437, 7.1821, 36.6997)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731BA6 #4EA61B
analogous
#2E1BA6 #731BA6 #A61B93
triadic
#731BA6 #A6731B #1BA673
tetradic
#731BA6 #A62E1B #4EA61B #1B93A6
square
#731BA6 #A62E1B #4EA61B #1B93A6
split-complementary
#731BA6 #93A61B #1BA62E
monochromatic
#2A0A3D #4F1271 #731BA6 #9724DB #B058E4

Accessibility & contrast

On white

8.62
#731BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#731BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731BA6
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731BA6#FFFFFF#000000##FFFFFF
##731BA61.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#004DA3
Tritanopia (blue-blind)
#6B4163
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #731ba6;
/* rgb */ color: rgb(115, 27, 166);
/* oklch */ color: oklch(44.2% 0.204 308.4);
Tailwind
colors: {
  custom: {
    50: '#a165c1',
    500: '#731ba6',
    950: '#000000',
  },
}
SCSS
$custom: #731ba6;
$custom-light: #a165c1;
$custom-dark: #000000;
JSON
{
  "hex": "#731ba6",
  "rgb": {
    "r": 115,
    "g": 27,
    "b": 166
  },
  "hsl": {
    "h": 277.986,
    "s": 72.021,
    "l": 37.843
  },
  "oklch": {
    "l": 0.44241,
    "c": 0.20352,
    "h": 308.4
  },
  "luminance": 0.07182
}

Semantic roles & 50–950 ramp

primary
#731BA6
secondary
#7FC756
accent
#EF397C
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100612
muted
#7F7A81

Preview Lab

Preview with #731BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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