#7331B5#7331B5

#7331B5 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.5% C 0.196 H 302.1°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#7331B5
RGBrgb(115, 49, 181)
HSLhsl(270, 57%, 45%)
HSVhsv(270, 73%, 71%)
CMYKcmyk(36.5%, 72.9%, 0%, 29%)
CIE-LABlab(36.32, 53.43, -58.33)
CIE-LCHlch(36.32, 79.10, 312.49°)
OKLaboklab(47.5% 0.1045 -0.1663)
OKLCHoklch(47.5% 0.196 302.1)
XYZxyz(16.5070, 9.1776, 44.6089)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7331B5 #73B531
analogous
#3131B5 #7331B5 #B531B5
triadic
#7331B5 #B57331 #31B573
tetradic
#7331B5 #B53131 #73B531 #31B5B5
square
#7331B5 #B53131 #73B531 #31B5B5
split-complementary
#7331B5 #B5B531 #31B531
monochromatic
#361755 #542485 #7331B5 #9253D0 #B083DD

Accessibility & contrast

On white

7.41
#7331B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7331B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7331B5
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7331B5#FFFFFF#000000##FFFFFF
##7331B51.007.412.847.41
#FFFFFF7.411.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0055B2
Tritanopia (blue-blind)
#655270
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7331b5;
/* rgb */ color: rgb(115, 49, 181);
/* oklch */ color: oklch(47.5% 0.196 302.1);
Tailwind
colors: {
  custom: {
    50: '#a16fcc',
    500: '#7331b5',
    950: '#000000',
  },
}
SCSS
$custom: #7331b5;
$custom-light: #a16fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#7331b5",
  "rgb": {
    "r": 115,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 270,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.47495,
    "c": 0.19635,
    "h": 302.1
  },
  "luminance": 0.09178
}

Semantic roles & 50–950 ramp

primary
#7331B5
secondary
#A1C77B
accent
#E14794
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7331B5

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

Preview Lab → · Contrast checker → · Palette generator →

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