#731BA7#731BA7

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

Color values

HEX#731BA7
RGBrgb(115, 27, 167)
HSLhsl(278, 72%, 38%)
HSVhsv(278, 84%, 65%)
CMYKcmyk(31.1%, 83.8%, 0%, 34.5%)
CIE-LABlab(32.30, 58.58, -56.52)
CIE-LCHlch(32.30, 81.40, 316.02°)
OKLaboklab(44.32% 0.1262 -0.1608)
OKLCHoklch(44.32% 0.204 308.1)
XYZxyz(14.4357, 7.2190, 37.1846)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731BA7 #4FA71B
analogous
#2D1BA7 #731BA7 #A71B95
triadic
#731BA7 #A7731B #1BA773
tetradic
#731BA7 #A72D1B #4FA71B #1B95A7
square
#731BA7 #A72D1B #4FA71B #1B95A7
split-complementary
#731BA7 #95A71B #1BA72D
monochromatic
#2A0A3E #4F1272 #731BA7 #9724DC #B058E4

Accessibility & contrast

On white

8.59
#731BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #731BA7
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731BA7#FFFFFF#000000##FFFFFF
##731BA71.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#004DA4
Tritanopia (blue-blind)
#6A4263
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #731ba7;
/* rgb */ color: rgb(115, 27, 167);
/* oklch */ color: oklch(44.3% 0.204 308.1);
Tailwind
colors: {
  custom: {
    50: '#a165c2',
    500: '#731ba7',
    950: '#000000',
  },
}
SCSS
$custom: #731ba7;
$custom-light: #a165c2;
$custom-dark: #000000;
JSON
{
  "hex": "#731ba7",
  "rgb": {
    "r": 115,
    "g": 27,
    "b": 167
  },
  "hsl": {
    "h": 277.714,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.44324,
    "c": 0.20443,
    "h": 308.1
  },
  "luminance": 0.07219
}

Semantic roles & 50–950 ramp

primary
#731BA7
secondary
#80C856
accent
#EF397D
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100612
muted
#7F7A81

Preview Lab

Preview with #731BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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