#731DB3#731DB3

#731DB3 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.5% C 0.214 H 304.6°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#731DB3
RGBrgb(115, 29, 179)
HSLhsl(274, 72%, 41%)
HSVhsv(274, 84%, 70%)
CMYKcmyk(35.8%, 83.8%, 0%, 29.8%)
CIE-LABlab(33.52, 60.58, -61.72)
CIE-LCHlch(33.52, 86.48, 314.47°)
OKLaboklab(45.48% 0.1213 -0.1761)
OKLCHoklch(45.48% 0.214 304.6)
XYZxyz(15.6444, 7.7783, 43.3163)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731DB3 #5DB31D
analogous
#281DB3 #731DB3 #B31DA8
triadic
#731DB3 #B3731D #1DB373
tetradic
#731DB3 #B3281D #5DB31D #1DA8B3
square
#731DB3 #B3281D #5DB31D #1DA8B3
split-complementary
#731DB3 #A8B31D #1DB328
monochromatic
#2F0C4A #51147E #731DB3 #9330DD #AF64E6

Accessibility & contrast

On white

8.22
#731DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#731DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731DB3
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731DB3#FFFFFF#000000##FFFFFF
##731DB31.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#66486B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #731db3;
/* rgb */ color: rgb(115, 29, 179);
/* oklch */ color: oklch(45.5% 0.214 304.6);
Tailwind
colors: {
  custom: {
    50: '#a266cb',
    500: '#731db3',
    950: '#000000',
  },
}
SCSS
$custom: #731db3;
$custom-light: #a266cb;
$custom-dark: #000000;
JSON
{
  "hex": "#731db3",
  "rgb": {
    "r": 115,
    "g": 29,
    "b": 179
  },
  "hsl": {
    "h": 274.4,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.45479,
    "c": 0.2138,
    "h": 304.6
  },
  "luminance": 0.07778
}

Semantic roles & 50–950 ramp

primary
#731DB3
secondary
#8ECB61
accent
#EF3987
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100613
muted
#7F7A82

Preview Lab

Preview with #731DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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