#7331A8#7331A8

#7331A8 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.5% C 0.183 H 305.8°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#7331A8
RGBrgb(115, 49, 168)
HSLhsl(273, 55%, 43%)
HSVhsv(273, 71%, 66%)
CMYKcmyk(31.5%, 70.8%, 0%, 34.1%)
CIE-LABlab(35.34, 50.32, -52.18)
CIE-LCHlch(35.34, 72.49, 313.96°)
OKLaboklab(46.49% 0.1067 -0.1482)
OKLCHoklch(46.49% 0.183 305.8)
XYZxyz(15.2349, 8.6687, 37.9088)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7331A8 #66A831
analogous
#3731A8 #7331A8 #A831A2
triadic
#7331A8 #A87331 #31A873
tetradic
#7331A8 #A83731 #66A831 #31A2A8
square
#7331A8 #A83731 #66A831 #31A2A8
split-complementary
#7331A8 #A2A831 #31A837
monochromatic
#321549 #532379 #7331A8 #924CCB #AF7BD8

Accessibility & contrast

On white

7.68
#7331A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7331A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7331A8
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7331A8#FFFFFF#000000##FFFFFF
##7331A81.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AB
Deuteranopia (green-blind)
#0053A5
Tritanopia (blue-blind)
#6A4C69
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7331a8;
/* rgb */ color: rgb(115, 49, 168);
/* oklch */ color: oklch(46.5% 0.183 305.8);
Tailwind
colors: {
  custom: {
    50: '#a06fc3',
    500: '#7331a8',
    950: '#000000',
  },
}
SCSS
$custom: #7331a8;
$custom-light: #a06fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7331a8",
  "rgb": {
    "r": 115,
    "g": 49,
    "b": 168
  },
  "hsl": {
    "h": 273.277,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.46486,
    "c": 0.18263,
    "h": 305.8
  },
  "luminance": 0.08669
}

Semantic roles & 50–950 ramp

primary
#7331A8
secondary
#96C174
accent
#DE4A8C
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0812
muted
#7F7B81

Preview Lab

Preview with #7331A8

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

Preview Lab → · Contrast checker → · Palette generator →

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