#7331A6#7331A6

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

Color values

HEX#7331A6
RGBrgb(115, 49, 166)
HSLhsl(274, 54%, 42%)
HSVhsv(274, 70%, 65%)
CMYKcmyk(30.7%, 70.5%, 0%, 34.9%)
CIE-LABlab(35.19, 49.85, -51.22)
CIE-LCHlch(35.19, 71.47, 314.22°)
OKLaboklab(46.34% 0.107 -0.1454)
OKLCHoklch(46.34% 0.181 306.4)
XYZxyz(15.0500, 8.5948, 36.9351)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7331A6 #64A631
analogous
#3831A6 #7331A6 #A6319F
triadic
#7331A6 #A67331 #31A673
tetradic
#7331A6 #A63831 #64A631 #319FA6
square
#7331A6 #A63831 #64A631 #319FA6
split-complementary
#7331A6 #9FA631 #31A638
monochromatic
#321547 #522377 #7331A6 #924ACA #AF7AD8

Accessibility & contrast

On white

7.72
#7331A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7331A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7331A6
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7331A6#FFFFFF#000000##FFFFFF
##7331A61.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#0853A4
Tritanopia (blue-blind)
#6A4C68
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7331a6;
/* rgb */ color: rgb(115, 49, 166);
/* oklch */ color: oklch(46.3% 0.181 306.4);
Tailwind
colors: {
  custom: {
    50: '#a06fc1',
    500: '#7331a6',
    950: '#000000',
  },
}
SCSS
$custom: #7331a6;
$custom-light: #a06fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#7331a6",
  "rgb": {
    "r": 115,
    "g": 49,
    "b": 166
  },
  "hsl": {
    "h": 273.846,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.46335,
    "c": 0.18051,
    "h": 306.4
  },
  "luminance": 0.08595
}

Semantic roles & 50–950 ramp

primary
#7331A6
secondary
#94C073
accent
#DE4A8A
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0812
muted
#7F7B81

Preview Lab

Preview with #7331A6

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

Preview Lab → · Contrast checker → · Palette generator →

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