#731EB3#731EB3

#731EB3 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.6% C 0.213 H 304.5°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#731EB3
RGBrgb(115, 30, 179)
HSLhsl(274, 71%, 41%)
HSVhsv(274, 83%, 70%)
CMYKcmyk(35.8%, 83.2%, 0%, 29.8%)
CIE-LABlab(33.62, 60.27, -61.55)
CIE-LCHlch(33.62, 86.14, 314.40°)
OKLaboklab(45.55% 0.1206 -0.1756)
OKLCHoklch(45.55% 0.213 304.5)
XYZxyz(15.6693, 7.8281, 43.3246)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#731EB3 #5EB31E
analogous
#281EB3 #731EB3 #B31EA8
triadic
#731EB3 #B3731E #1EB373
tetradic
#731EB3 #B3281E #5EB31E #1EA8B3
square
#731EB3 #B3281E #5EB31E #1EA8B3
split-complementary
#731EB3 #A8B31E #1EB328
monochromatic
#300C4A #51157F #731EB3 #9332DD #AF66E5

Accessibility & contrast

On white

8.19
#731EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#731EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #731EB3
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##731EB3#FFFFFF#000000##FFFFFF
##731EB31.008.192.578.19
#FFFFFF8.191.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.191.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: #731eb3;
/* rgb */ color: rgb(115, 30, 179);
/* oklch */ color: oklch(45.6% 0.213 304.5);
Tailwind
colors: {
  custom: {
    50: '#a266cb',
    500: '#731eb3',
    950: '#000000',
  },
}
SCSS
$custom: #731eb3;
$custom-light: #a266cb;
$custom-dark: #000000;
JSON
{
  "hex": "#731eb3",
  "rgb": {
    "r": 115,
    "g": 30,
    "b": 179
  },
  "hsl": {
    "h": 274.228,
    "s": 71.292,
    "l": 40.98
  },
  "oklch": {
    "l": 0.45552,
    "c": 0.21301,
    "h": 304.5
  },
  "luminance": 0.07828
}

Semantic roles & 50–950 ramp

primary
#731EB3
secondary
#8FCB62
accent
#EE3A87
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #731EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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