#731FA7#731FA7

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

Color values

HEX#731FA7
RGBrgb(115, 31, 167)
HSLhsl(277, 69%, 39%)
HSVhsv(277, 81%, 65%)
CMYKcmyk(31.1%, 81.4%, 0%, 34.5%)
CIE-LABlab(32.73, 57.31, -55.81)
CIE-LCHlch(32.73, 80.00, 315.76°)
OKLaboklab(44.63% 0.1234 -0.1587)
OKLCHoklch(44.63% 0.201 307.8)
XYZxyz(14.5338, 7.4150, 37.2173)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731FA7 #53A71F
analogous
#2F1FA7 #731FA7 #A71F97
triadic
#731FA7 #A7731F #1FA773
tetradic
#731FA7 #A72F1F #53A71F #1F97A7
square
#731FA7 #A72F1F #53A71F #1F97A7
split-complementary
#731FA7 #97A71F #1FA72F
monochromatic
#2C0C40 #4F1573 #731FA7 #962BD8 #B05FE1

Accessibility & contrast

On white

8.46
#731FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #731FA7
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731FA7#FFFFFF#000000##FFFFFF
##731FA71.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#004EA4
Tritanopia (blue-blind)
#6A4364
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #731fa7;
/* rgb */ color: rgb(115, 31, 167);
/* oklch */ color: oklch(44.6% 0.201 307.8);
Tailwind
colors: {
  custom: {
    50: '#a166c2',
    500: '#731fa7',
    950: '#000000',
  },
}
SCSS
$custom: #731fa7;
$custom-light: #a166c2;
$custom-dark: #000000;
JSON
{
  "hex": "#731fa7",
  "rgb": {
    "r": 115,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 277.059,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.44626,
    "c": 0.20105,
    "h": 307.8
  },
  "luminance": 0.07415
}

Semantic roles & 50–950 ramp

primary
#731FA7
secondary
#84C65C
accent
#EC3C7F
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #731FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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