#731CAB#731CAB

#731CAB is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.7% C 0.207 H 306.9°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#731CAB
RGBrgb(115, 28, 171)
HSLhsl(277, 72%, 39%)
HSVhsv(277, 84%, 67%)
CMYKcmyk(32.7%, 83.6%, 0%, 32.9%)
CIE-LABlab(32.74, 59.14, -58.22)
CIE-LCHlch(32.74, 82.98, 315.45°)
OKLaboklab(44.73% 0.1244 -0.1658)
OKLCHoklch(44.73% 0.207 306.9)
XYZxyz(14.8346, 7.4158, 39.1701)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731CAB #54AB1C
analogous
#2B1CAB #731CAB #AB1C9C
triadic
#731CAB #AB731C #1CAB73
tetradic
#731CAB #AB2B1C #54AB1C #1C9CAB
square
#731CAB #AB2B1C #54AB1C #1C9CAB
split-complementary
#731CAB #9CAB1C #1CAB2B
monochromatic
#2C0B42 #501376 #731CAB #9628DC #AF5DE4

Accessibility & contrast

On white

8.46
#731CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#731CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731CAB
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731CAB#FFFFFF#000000##FFFFFF
##731CAB1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAF
Deuteranopia (green-blind)
#004DA8
Tritanopia (blue-blind)
#694466
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #731cab;
/* rgb */ color: rgb(115, 28, 171);
/* oklch */ color: oklch(44.7% 0.207 306.9);
Tailwind
colors: {
  custom: {
    50: '#a165c5',
    500: '#731cab',
    950: '#000000',
  },
}
SCSS
$custom: #731cab;
$custom-light: #a165c5;
$custom-dark: #000000;
JSON
{
  "hex": "#731cab",
  "rgb": {
    "r": 115,
    "g": 28,
    "b": 171
  },
  "hsl": {
    "h": 276.503,
    "s": 71.859,
    "l": 39.02
  },
  "oklch": {
    "l": 0.44729,
    "c": 0.20725,
    "h": 306.9
  },
  "luminance": 0.07416
}

Semantic roles & 50–950 ramp

primary
#731CAB
secondary
#85C95A
accent
#EF3980
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100613
muted
#7F7A82

Preview Lab

Preview with #731CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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