#731CB4#731CB4

#731CB4 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.5% C 0.215 H 304.4°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#731CB4
RGBrgb(115, 28, 180)
HSLhsl(274, 73%, 41%)
HSVhsv(274, 84%, 71%)
CMYKcmyk(36.1%, 84.4%, 0%, 29.4%)
CIE-LABlab(33.50, 61.10, -62.34)
CIE-LCHlch(33.50, 87.29, 314.43°)
OKLaboklab(45.5% 0.1216 -0.1779)
OKLCHoklch(45.5% 0.215 304.4)
XYZxyz(15.7218, 7.7707, 43.8428)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731CB4 #5DB41C
analogous
#271CB4 #731CB4 #B41CA9
triadic
#731CB4 #B4731C #1CB473
tetradic
#731CB4 #B4271C #5DB41C #1CA9B4
square
#731CB4 #B4271C #5DB41C #1CA9B4
split-complementary
#731CB4 #A9B41C #1CB427
monochromatic
#2F0C4A #51147F #731CB4 #932FDF #AF64E7

Accessibility & contrast

On white

8.22
#731CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#731CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731CB4
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731CB4#FFFFFF#000000##FFFFFF
##731CB41.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB8
Deuteranopia (green-blind)
#004FB1
Tritanopia (blue-blind)
#66486B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #731cb4;
/* rgb */ color: rgb(115, 28, 180);
/* oklch */ color: oklch(45.5% 0.215 304.4);
Tailwind
colors: {
  custom: {
    50: '#a266cc',
    500: '#731cb4',
    950: '#000000',
  },
}
SCSS
$custom: #731cb4;
$custom-light: #a266cc;
$custom-dark: #000000;
JSON
{
  "hex": "#731cb4",
  "rgb": {
    "r": 115,
    "g": 28,
    "b": 180
  },
  "hsl": {
    "h": 274.342,
    "s": 73.077,
    "l": 40.784
  },
  "oklch": {
    "l": 0.45495,
    "c": 0.21548,
    "h": 304.4
  },
  "luminance": 0.07771
}

Semantic roles & 50–950 ramp

primary
#731CB4
secondary
#8ECC60
accent
#F03887
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100613
muted
#7F7A82

Preview Lab

Preview with #731CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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