#731EA8#731EA8

#731EA8 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.6% C 0.203 H 307.6°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#731EA8
RGBrgb(115, 30, 168)
HSLhsl(277, 70%, 39%)
HSVhsv(277, 82%, 66%)
CMYKcmyk(31.5%, 82.1%, 0%, 34.1%)
CIE-LABlab(32.70, 57.86, -56.47)
CIE-LCHlch(32.70, 80.85, 315.70°)
OKLaboklab(44.63% 0.1238 -0.1607)
OKLCHoklch(44.63% 0.203 307.6)
XYZxyz(14.6009, 7.4007, 37.6975)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731EA8 #53A81E
analogous
#2E1EA8 #731EA8 #A81E98
triadic
#731EA8 #A8731E #1EA873
tetradic
#731EA8 #A82E1E #53A81E #1E98A8
square
#731EA8 #A82E1E #53A81E #1E98A8
split-complementary
#731EA8 #98A81E #1EA82E
monochromatic
#2C0B40 #4F1574 #731EA8 #962AD9 #B05EE2

Accessibility & contrast

On white

8.47
#731EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #731EA8
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731EA8#FFFFFF#000000##FFFFFF
##731EA81.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#004EA5
Tritanopia (blue-blind)
#6A4365
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #731ea8;
/* rgb */ color: rgb(115, 30, 168);
/* oklch */ color: oklch(44.6% 0.203 307.6);
Tailwind
colors: {
  custom: {
    50: '#a166c3',
    500: '#731ea8',
    950: '#000000',
  },
}
SCSS
$custom: #731ea8;
$custom-light: #a166c3;
$custom-dark: #000000;
JSON
{
  "hex": "#731ea8",
  "rgb": {
    "r": 115,
    "g": 30,
    "b": 168
  },
  "hsl": {
    "h": 276.957,
    "s": 69.697,
    "l": 38.824
  },
  "oklch": {
    "l": 0.44629,
    "c": 0.20284,
    "h": 307.6
  },
  "luminance": 0.07401
}

Semantic roles & 50–950 ramp

primary
#731EA8
secondary
#84C75B
accent
#ED3B7F
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100613
muted
#7F7A82

Preview Lab

Preview with #731EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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