#7331B3#7331B3

#7331B3 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.3% C 0.194 H 302.7°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#7331B3
RGBrgb(115, 49, 179)
HSLhsl(270, 57%, 45%)
HSVhsv(270, 73%, 70%)
CMYKcmyk(35.8%, 72.6%, 0%, 29.8%)
CIE-LABlab(36.17, 52.95, -57.40)
CIE-LCHlch(36.17, 78.09, 312.69°)
OKLaboklab(47.34% 0.1048 -0.1635)
OKLCHoklch(47.34% 0.194 302.7)
XYZxyz(16.3033, 9.0961, 43.5359)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7331B3 #71B331
analogous
#3231B3 #7331B3 #B331B2
triadic
#7331B3 #B37331 #31B373
tetradic
#7331B3 #B33231 #71B331 #31B2B3
square
#7331B3 #B33231 #71B331 #31B2B3
split-complementary
#7331B3 #B2B331 #31B332
monochromatic
#351753 #542483 #7331B3 #9252D0 #B082DD

Accessibility & contrast

On white

7.45
#7331B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7331B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7331B3
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7331B3#FFFFFF#000000##FFFFFF
##7331B31.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0055B0
Tritanopia (blue-blind)
#66516F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7331b3;
/* rgb */ color: rgb(115, 49, 179);
/* oklch */ color: oklch(47.3% 0.194 302.7);
Tailwind
colors: {
  custom: {
    50: '#a16fcb',
    500: '#7331b3',
    950: '#000000',
  },
}
SCSS
$custom: #7331b3;
$custom-light: #a16fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7331b3",
  "rgb": {
    "r": 115,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 270.462,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47336,
    "c": 0.19424,
    "h": 302.7
  },
  "luminance": 0.09096
}

Semantic roles & 50–950 ramp

primary
#7331B3
secondary
#9FC67A
accent
#E04893
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7331B3

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

Preview Lab → · Contrast checker → · Palette generator →

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