#7331A4#7331A4

#7331A4 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.2% C 0.178 H 307.0°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#7331A4
RGBrgb(115, 49, 164)
HSLhsl(274, 54%, 42%)
HSVhsv(274, 70%, 64%)
CMYKcmyk(29.9%, 70.1%, 0%, 35.7%)
CIE-LABlab(35.05, 49.38, -50.25)
CIE-LCHlch(35.05, 70.45, 314.49°)
OKLaboklab(46.19% 0.1073 -0.1425)
OKLCHoklch(46.19% 0.178 307)
XYZxyz(14.8680, 8.5220, 35.9764)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7331A4 #62A431
analogous
#3A31A4 #7331A4 #A4319C
triadic
#7331A4 #A47331 #31A473
tetradic
#7331A4 #A43A31 #62A431 #319CA4
square
#7331A4 #A43A31 #62A431 #319CA4
split-complementary
#7331A4 #9CA431 #31A43A
monochromatic
#311546 #522375 #7331A4 #9349C9 #AF79D7

Accessibility & contrast

On white

7.77
#7331A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7331A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7331A4
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7331A4#FFFFFF#000000##FFFFFF
##7331A41.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#0F53A2
Tritanopia (blue-blind)
#6B4B67
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7331a4;
/* rgb */ color: rgb(115, 49, 164);
/* oklch */ color: oklch(46.2% 0.178 307.0);
Tailwind
colors: {
  custom: {
    50: '#a06fc0',
    500: '#7331a4',
    950: '#000000',
  },
}
SCSS
$custom: #7331a4;
$custom-light: #a06fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7331a4",
  "rgb": {
    "r": 115,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 274.435,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46186,
    "c": 0.17839,
    "h": 307
  },
  "luminance": 0.08522
}

Semantic roles & 50–950 ramp

primary
#7331A4
secondary
#93BF72
accent
#DD4A89
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0812
muted
#7F7B81

Preview Lab

Preview with #7331A4

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

Preview Lab → · Contrast checker → · Palette generator →

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