#731EA4#731EA4

#731EA4 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.3% C 0.199 H 308.8°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#731EA4
RGBrgb(115, 30, 164)
HSLhsl(278, 69%, 38%)
HSVhsv(278, 82%, 64%)
CMYKcmyk(29.9%, 81.7%, 0%, 35.7%)
CIE-LABlab(32.38, 56.99, -54.58)
CIE-LCHlch(32.38, 78.92, 316.24°)
OKLaboklab(44.3% 0.1249 -0.1551)
OKLCHoklch(44.3% 0.199 308.8)
XYZxyz(14.2340, 7.2540, 35.7651)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731EA4 #4FA41E
analogous
#301EA4 #731EA4 #A41E92
triadic
#731EA4 #A4731E #1EA473
tetradic
#731EA4 #A4301E #4FA41E #1E92A4
square
#731EA4 #A4301E #4FA41E #1E92A4
split-complementary
#731EA4 #92A41E #1EA430
monochromatic
#2A0B3D #4F1570 #731EA4 #9728D8 #B05BE1

Accessibility & contrast

On white

8.57
#731EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#731EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731EA4
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731EA4#FFFFFF#000000##FFFFFF
##731EA41.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A8
Deuteranopia (green-blind)
#004DA1
Tritanopia (blue-blind)
#6B4162
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #731ea4;
/* rgb */ color: rgb(115, 30, 164);
/* oklch */ color: oklch(44.3% 0.199 308.8);
Tailwind
colors: {
  custom: {
    50: '#a166c0',
    500: '#731ea4',
    950: '#000000',
  },
}
SCSS
$custom: #731ea4;
$custom-light: #a166c0;
$custom-dark: #000000;
JSON
{
  "hex": "#731ea4",
  "rgb": {
    "r": 115,
    "g": 30,
    "b": 164
  },
  "hsl": {
    "h": 278.06,
    "s": 69.072,
    "l": 38.039
  },
  "oklch": {
    "l": 0.44302,
    "c": 0.19916,
    "h": 308.8
  },
  "luminance": 0.07254
}

Semantic roles & 50–950 ramp

primary
#731EA4
secondary
#80C559
accent
#EC3C7C
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #731EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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