#7331B8#7331B8

#7331B8 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.7% C 0.200 H 301.4°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#7331B8
RGBrgb(115, 49, 184)
HSLhsl(269, 58%, 46%)
HSVhsv(269, 73%, 72%)
CMYKcmyk(37.5%, 73.4%, 0%, 27.8%)
CIE-LABlab(36.56, 54.16, -59.72)
CIE-LCHlch(36.56, 80.62, 312.20°)
OKLaboklab(47.74% 0.1039 -0.1703)
OKLCHoklch(47.74% 0.2 301.4)
XYZxyz(16.8182, 9.3021, 46.2475)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7331B8 #76B831
analogous
#3133B8 #7331B8 #B631B8
triadic
#7331B8 #B87331 #31B873
tetradic
#7331B8 #B83133 #76B831 #31B8B6
square
#7331B8 #B83133 #76B831 #31B8B6
split-complementary
#7331B8 #B8B631 #33B831
monochromatic
#371757 #552488 #7331B8 #9255D2 #B185DE

Accessibility & contrast

On white

7.34
#7331B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7331B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7331B8
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7331B8#FFFFFF#000000##FFFFFF
##7331B81.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0055B5
Tritanopia (blue-blind)
#645372
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7331b8;
/* rgb */ color: rgb(115, 49, 184);
/* oklch */ color: oklch(47.7% 0.200 301.4);
Tailwind
colors: {
  custom: {
    50: '#a16fce',
    500: '#7331b8',
    950: '#000000',
  },
}
SCSS
$custom: #7331b8;
$custom-light: #a16fce;
$custom-dark: #000000;
JSON
{
  "hex": "#7331b8",
  "rgb": {
    "r": 115,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 269.333,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.47735,
    "c": 0.19951,
    "h": 301.4
  },
  "luminance": 0.09302
}

Semantic roles & 50–950 ramp

primary
#7331B8
secondary
#A3C87D
accent
#E14796
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7331B8

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

Preview Lab → · Contrast checker → · Palette generator →

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