#7331A5#7331A5

#7331A5 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.3% C 0.179 H 306.7°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#7331A5
RGBrgb(115, 49, 165)
HSLhsl(274, 54%, 42%)
HSVhsv(274, 70%, 65%)
CMYKcmyk(30.3%, 70.3%, 0%, 35.3%)
CIE-LABlab(35.12, 49.61, -50.74)
CIE-LCHlch(35.12, 70.96, 314.36°)
OKLaboklab(46.26% 0.1072 -0.1439)
OKLCHoklch(46.26% 0.179 306.7)
XYZxyz(14.9586, 8.5582, 36.4539)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7331A5 #63A531
analogous
#3931A5 #7331A5 #A5319D
triadic
#7331A5 #A57331 #31A573
tetradic
#7331A5 #A53931 #63A531 #319DA5
square
#7331A5 #A53931 #63A531 #319DA5
split-complementary
#7331A5 #9DA531 #31A539
monochromatic
#311547 #522376 #7331A5 #924AC9 #AF79D7

Accessibility & contrast

On white

7.74
#7331A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7331A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7331A5
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7331A5#FFFFFF#000000##FFFFFF
##7331A51.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#0C53A3
Tritanopia (blue-blind)
#6B4B67
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7331a5;
/* rgb */ color: rgb(115, 49, 165);
/* oklch */ color: oklch(46.3% 0.179 306.7);
Tailwind
colors: {
  custom: {
    50: '#a06fc0',
    500: '#7331a5',
    950: '#000000',
  },
}
SCSS
$custom: #7331a5;
$custom-light: #a06fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7331a5",
  "rgb": {
    "r": 115,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 274.138,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.46261,
    "c": 0.17945,
    "h": 306.7
  },
  "luminance": 0.08558
}

Semantic roles & 50–950 ramp

primary
#7331A5
secondary
#94C072
accent
#DE4A8A
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0812
muted
#7F7B81

Preview Lab

Preview with #7331A5

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

Preview Lab → · Contrast checker → · Palette generator →

#7331A5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva