#731EA5#731EA5

#731EA5 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.4% C 0.200 H 308.5°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#731EA5
RGBrgb(115, 30, 165)
HSLhsl(278, 69%, 38%)
HSVhsv(278, 82%, 65%)
CMYKcmyk(30.3%, 81.8%, 0%, 35.3%)
CIE-LABlab(32.46, 57.21, -55.06)
CIE-LCHlch(32.46, 79.40, 316.10°)
OKLaboklab(44.38% 0.1246 -0.1565)
OKLCHoklch(44.38% 0.2 308.5)
XYZxyz(14.3246, 7.2902, 36.2426)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731EA5 #50A51E
analogous
#2F1EA5 #731EA5 #A51E93
triadic
#731EA5 #A5731E #1EA573
tetradic
#731EA5 #A52F1E #50A51E #1E93A5
square
#731EA5 #A52F1E #50A51E #1E93A5
split-complementary
#731EA5 #93A51E #1EA52F
monochromatic
#2B0B3D #4F1571 #731EA5 #9728D8 #B05CE1

Accessibility & contrast

On white

8.54
#731EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#731EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731EA5
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731EA5#FFFFFF#000000##FFFFFF
##731EA51.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#004DA2
Tritanopia (blue-blind)
#6B4263
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #731ea5;
/* rgb */ color: rgb(115, 30, 165);
/* oklch */ color: oklch(44.4% 0.200 308.5);
Tailwind
colors: {
  custom: {
    50: '#a166c1',
    500: '#731ea5',
    950: '#000000',
  },
}
SCSS
$custom: #731ea5;
$custom-light: #a166c1;
$custom-dark: #000000;
JSON
{
  "hex": "#731ea5",
  "rgb": {
    "r": 115,
    "g": 30,
    "b": 165
  },
  "hsl": {
    "h": 277.778,
    "s": 69.231,
    "l": 38.235
  },
  "oklch": {
    "l": 0.44384,
    "c": 0.20008,
    "h": 308.5
  },
  "luminance": 0.0729
}

Semantic roles & 50–950 ramp

primary
#731EA5
secondary
#81C559
accent
#EC3C7D
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #731EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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