#7331A0#7331A0

#7331A0 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.9% C 0.174 H 308.2°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#7331A0
RGBrgb(115, 49, 160)
HSLhsl(276, 53%, 41%)
HSVhsv(276, 69%, 63%)
CMYKcmyk(28.1%, 69.4%, 0%, 37.3%)
CIE-LABlab(34.76, 48.44, -48.30)
CIE-LCHlch(34.76, 68.41, 315.08°)
OKLaboklab(45.89% 0.1078 -0.1368)
OKLCHoklch(45.89% 0.174 308.2)
XYZxyz(14.5124, 8.3798, 34.1038)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7331A0 #5EA031
analogous
#3C31A0 #7331A0 #A03195
triadic
#7331A0 #A07331 #31A073
tetradic
#7331A0 #A03C31 #5EA031 #3195A0
square
#7331A0 #A03C31 #5EA031 #3195A0
split-complementary
#7331A0 #95A031 #31A03C
monochromatic
#301442 #512371 #7331A0 #9347C7 #AF76D5

Accessibility & contrast

On white

7.85
#7331A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7331A0
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7331A0#FFFFFF#000000##FFFFFF
##7331A01.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA3
Deuteranopia (green-blind)
#18529E
Tritanopia (blue-blind)
#6C4965
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7331a0;
/* rgb */ color: rgb(115, 49, 160);
/* oklch */ color: oklch(45.9% 0.174 308.2);
Tailwind
colors: {
  custom: {
    50: '#9f6ebd',
    500: '#7331a0',
    950: '#000000',
  },
}
SCSS
$custom: #7331a0;
$custom-light: #9f6ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#7331a0",
  "rgb": {
    "r": 115,
    "g": 49,
    "b": 160
  },
  "hsl": {
    "h": 275.676,
    "s": 53.11,
    "l": 40.98
  },
  "oklch": {
    "l": 0.45892,
    "c": 0.17416,
    "h": 308.2
  },
  "luminance": 0.0838
}

Semantic roles & 50–950 ramp

primary
#7331A0
secondary
#8FBD70
accent
#DD4B86
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #7331A0

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

Preview Lab → · Contrast checker → · Palette generator →

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