#7331A1#7331A1

#7331A1 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.0% C 0.175 H 307.9°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#7331A1
RGBrgb(115, 49, 161)
HSLhsl(275, 53%, 41%)
HSVhsv(275, 70%, 63%)
CMYKcmyk(28.6%, 69.6%, 0%, 36.9%)
CIE-LABlab(34.83, 48.67, -48.79)
CIE-LCHlch(34.83, 68.92, 314.93°)
OKLaboklab(45.97% 0.1077 -0.1382)
OKLCHoklch(45.97% 0.175 307.9)
XYZxyz(14.6002, 8.4149, 34.5664)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7331A1 #5FA131
analogous
#3B31A1 #7331A1 #A13197
triadic
#7331A1 #A17331 #31A173
tetradic
#7331A1 #A13B31 #5FA131 #3197A1
square
#7331A1 #A13B31 #5FA131 #3197A1
split-complementary
#7331A1 #97A131 #31A13B
monochromatic
#301443 #512372 #7331A1 #9348C7 #AF77D6

Accessibility & contrast

On white

7.83
#7331A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7331A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7331A1
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7331A1#FFFFFF#000000##FFFFFF
##7331A11.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#16539F
Tritanopia (blue-blind)
#6C4A65
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7331a1;
/* rgb */ color: rgb(115, 49, 161);
/* oklch */ color: oklch(46.0% 0.175 307.9);
Tailwind
colors: {
  custom: {
    50: '#9f6ebd',
    500: '#7331a1',
    950: '#000000',
  },
}
SCSS
$custom: #7331a1;
$custom-light: #9f6ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#7331a1",
  "rgb": {
    "r": 115,
    "g": 49,
    "b": 161
  },
  "hsl": {
    "h": 275.357,
    "s": 53.333,
    "l": 41.176
  },
  "oklch": {
    "l": 0.45965,
    "c": 0.17522,
    "h": 307.9
  },
  "luminance": 0.08415
}

Semantic roles & 50–950 ramp

primary
#7331A1
secondary
#90BE70
accent
#DD4B87
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0812
muted
#7F7B81

Preview Lab

Preview with #7331A1

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

Preview Lab → · Contrast checker → · Palette generator →

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