#731DA7#731DA7

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

Color values

HEX#731DA7
RGBrgb(115, 29, 167)
HSLhsl(277, 70%, 38%)
HSVhsv(277, 83%, 65%)
CMYKcmyk(31.1%, 82.6%, 0%, 34.5%)
CIE-LABlab(32.51, 57.96, -56.18)
CIE-LCHlch(32.51, 80.72, 315.90°)
OKLaboklab(44.47% 0.1248 -0.1598)
OKLCHoklch(44.47% 0.203 308)
XYZxyz(14.4832, 7.3138, 37.2005)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731DA7 #51A71D
analogous
#2E1DA7 #731DA7 #A71D96
triadic
#731DA7 #A7731D #1DA773
tetradic
#731DA7 #A72E1D #51A71D #1D96A7
square
#731DA7 #A72E1D #51A71D #1D96A7
split-complementary
#731DA7 #96A71D #1DA72E
monochromatic
#2B0B3F #4F1473 #731DA7 #9728DA #B05CE3

Accessibility & contrast

On white

8.53
#731DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #731DA7
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731DA7#FFFFFF#000000##FFFFFF
##731DA71.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#004DA4
Tritanopia (blue-blind)
#6A4264
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #731da7;
/* rgb */ color: rgb(115, 29, 167);
/* oklch */ color: oklch(44.5% 0.203 308.0);
Tailwind
colors: {
  custom: {
    50: '#a165c2',
    500: '#731da7',
    950: '#000000',
  },
}
SCSS
$custom: #731da7;
$custom-light: #a165c2;
$custom-dark: #000000;
JSON
{
  "hex": "#731da7",
  "rgb": {
    "r": 115,
    "g": 29,
    "b": 167
  },
  "hsl": {
    "h": 277.391,
    "s": 70.408,
    "l": 38.431
  },
  "oklch": {
    "l": 0.4447,
    "c": 0.20278,
    "h": 308
  },
  "luminance": 0.07314
}

Semantic roles & 50–950 ramp

primary
#731DA7
secondary
#82C759
accent
#ED3B7E
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100612
muted
#7F7A81

Preview Lab

Preview with #731DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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