#731FA5#731FA5

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

Color values

HEX#731FA5
RGBrgb(115, 31, 165)
HSLhsl(278, 68%, 38%)
HSVhsv(278, 81%, 65%)
CMYKcmyk(30.3%, 81.2%, 0%, 35.3%)
CIE-LABlab(32.57, 56.88, -54.87)
CIE-LCHlch(32.57, 79.03, 316.03°)
OKLaboklab(44.46% 0.1239 -0.156)
OKLCHoklch(44.46% 0.199 308.5)
XYZxyz(14.3503, 7.3417, 36.2511)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731FA5 #51A51F
analogous
#301FA5 #731FA5 #A51F94
triadic
#731FA5 #A5731F #1FA573
tetradic
#731FA5 #A5301F #51A51F #1F94A5
square
#731FA5 #A5301F #51A51F #1F94A5
split-complementary
#731FA5 #94A51F #1FA530
monochromatic
#2B0C3E #4F1571 #731FA5 #972AD7 #B05EE1

Accessibility & contrast

On white

8.51
#731FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #731FA5
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731FA5#FFFFFF#000000##FFFFFF
##731FA51.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#004DA2
Tritanopia (blue-blind)
#6B4263
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #731fa5;
/* rgb */ color: rgb(115, 31, 165);
/* oklch */ color: oklch(44.5% 0.199 308.5);
Tailwind
colors: {
  custom: {
    50: '#a166c1',
    500: '#731fa5',
    950: '#000000',
  },
}
SCSS
$custom: #731fa5;
$custom-light: #a166c1;
$custom-dark: #000000;
JSON
{
  "hex": "#731fa5",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 277.612,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.44463,
    "c": 0.19919,
    "h": 308.5
  },
  "luminance": 0.07341
}

Semantic roles & 50–950 ramp

primary
#731FA5
secondary
#82C55B
accent
#EB3D7E
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #731FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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