#731BAA#731BAA

#731BAA is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.6% C 0.207 H 307.2°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#731BAA
RGBrgb(115, 27, 170)
HSLhsl(277, 73%, 39%)
HSVhsv(277, 84%, 67%)
CMYKcmyk(32.4%, 84.1%, 0%, 33.3%)
CIE-LABlab(32.55, 59.22, -57.92)
CIE-LCHlch(32.55, 82.84, 315.64°)
OKLaboklab(44.57% 0.1254 -0.1649)
OKLCHoklch(44.57% 0.207 307.2)
XYZxyz(14.7163, 7.3312, 38.6622)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731BAA #52AA1B
analogous
#2B1BAA #731BAA #AA1B99
triadic
#731BAA #AA731B #1BAA73
tetradic
#731BAA #AA2B1B #52AA1B #1B99AA
square
#731BAA #AA2B1B #52AA1B #1B99AA
split-complementary
#731BAA #99AA1B #1BAA2B
monochromatic
#2C0A40 #4F1375 #731BAA #9626DC #B05BE5

Accessibility & contrast

On white

8.52
#731BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#731BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731BAA
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731BAA#FFFFFF#000000##FFFFFF
##731BAA1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#004DA7
Tritanopia (blue-blind)
#694365
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #731baa;
/* rgb */ color: rgb(115, 27, 170);
/* oklch */ color: oklch(44.6% 0.207 307.2);
Tailwind
colors: {
  custom: {
    50: '#a165c4',
    500: '#731baa',
    950: '#000000',
  },
}
SCSS
$custom: #731baa;
$custom-light: #a165c4;
$custom-dark: #000000;
JSON
{
  "hex": "#731baa",
  "rgb": {
    "r": 115,
    "g": 27,
    "b": 170
  },
  "hsl": {
    "h": 276.923,
    "s": 72.589,
    "l": 38.627
  },
  "oklch": {
    "l": 0.44574,
    "c": 0.20714,
    "h": 307.2
  },
  "luminance": 0.07331
}

Semantic roles & 50–950 ramp

primary
#731BAA
secondary
#83C958
accent
#EF397F
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100613
muted
#7F7A82

Preview Lab

Preview with #731BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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