#7331A2#7331A2

#7331A2 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.0% C 0.176 H 307.6°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#7331A2
RGBrgb(115, 49, 162)
HSLhsl(275, 54%, 41%)
HSVhsv(275, 70%, 64%)
CMYKcmyk(29%, 69.8%, 0%, 36.5%)
CIE-LABlab(34.90, 48.91, -49.28)
CIE-LCHlch(34.90, 69.43, 314.78°)
OKLaboklab(46.04% 0.1075 -0.1397)
OKLCHoklch(46.04% 0.176 307.6)
XYZxyz(14.6888, 8.4503, 35.0327)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7331A2 #60A231
analogous
#3A31A2 #7331A2 #A23199
triadic
#7331A2 #A27331 #31A273
tetradic
#7331A2 #A23A31 #60A231 #3199A2
square
#7331A2 #A23A31 #60A231 #3199A2
split-complementary
#7331A2 #99A231 #31A23A
monochromatic
#301544 #522373 #7331A2 #9348C8 #AF77D6

Accessibility & contrast

On white

7.81
#7331A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7331A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7331A2
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7331A2#FFFFFF#000000##FFFFFF
##7331A21.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#1453A0
Tritanopia (blue-blind)
#6B4A66
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7331a2;
/* rgb */ color: rgb(115, 49, 162);
/* oklch */ color: oklch(46.0% 0.176 307.6);
Tailwind
colors: {
  custom: {
    50: '#9f6ebe',
    500: '#7331a2',
    950: '#000000',
  },
}
SCSS
$custom: #7331a2;
$custom-light: #9f6ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#7331a2",
  "rgb": {
    "r": 115,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 275.044,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46038,
    "c": 0.17627,
    "h": 307.6
  },
  "luminance": 0.0845
}

Semantic roles & 50–950 ramp

primary
#7331A2
secondary
#91BE71
accent
#DD4B88
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0812
muted
#7F7B81

Preview Lab

Preview with #7331A2

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

Preview Lab → · Contrast checker → · Palette generator →

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