#731EA6#731EA6

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

Color values

HEX#731EA6
RGBrgb(115, 30, 166)
HSLhsl(278, 69%, 38%)
HSVhsv(278, 82%, 65%)
CMYKcmyk(30.7%, 81.9%, 0%, 34.9%)
CIE-LABlab(32.54, 57.43, -55.53)
CIE-LCHlch(32.54, 79.88, 315.96°)
OKLaboklab(44.47% 0.1244 -0.1579)
OKLCHoklch(44.47% 0.201 308.2)
XYZxyz(14.4160, 7.3268, 36.7238)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731EA6 #51A61E
analogous
#2F1EA6 #731EA6 #A61E95
triadic
#731EA6 #A6731E #1EA673
tetradic
#731EA6 #A62F1E #51A61E #1E95A6
square
#731EA6 #A62F1E #51A61E #1E95A6
split-complementary
#731EA6 #95A61E #1EA62F
monochromatic
#2B0B3E #4F1572 #731EA6 #9729D8 #B05DE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##731EA6#FFFFFF#000000##FFFFFF
##731EA61.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)
#004AAA
Deuteranopia (green-blind)
#004DA3
Tritanopia (blue-blind)
#6B4263
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #731ea6;
/* rgb */ color: rgb(115, 30, 166);
/* oklch */ color: oklch(44.5% 0.201 308.2);
Tailwind
colors: {
  custom: {
    50: '#a166c1',
    500: '#731ea6',
    950: '#000000',
  },
}
SCSS
$custom: #731ea6;
$custom-light: #a166c1;
$custom-dark: #000000;
JSON
{
  "hex": "#731ea6",
  "rgb": {
    "r": 115,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 277.5,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.44465,
    "c": 0.201,
    "h": 308.2
  },
  "luminance": 0.07327
}

Semantic roles & 50–950 ramp

primary
#731EA6
secondary
#82C65A
accent
#EC3C7E
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #731EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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