#7331B7#7331B7

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

Color values

HEX#7331B7
RGBrgb(115, 49, 183)
HSLhsl(270, 58%, 45%)
HSVhsv(270, 73%, 72%)
CMYKcmyk(37.2%, 73.2%, 0%, 28.2%)
CIE-LABlab(36.48, 53.91, -59.26)
CIE-LCHlch(36.48, 80.11, 312.30°)
OKLaboklab(47.65% 0.1041 -0.169)
OKLCHoklch(47.65% 0.198 301.6)
XYZxyz(16.7137, 9.2603, 45.6974)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7331B7 #75B731
analogous
#3132B7 #7331B7 #B631B7
triadic
#7331B7 #B77331 #31B773
tetradic
#7331B7 #B73132 #75B731 #31B7B6
square
#7331B7 #B73132 #75B731 #31B7B6
split-complementary
#7331B7 #B7B631 #32B731
monochromatic
#361756 #552487 #7331B7 #9254D1 #B184DE

Accessibility & contrast

On white

7.36
#7331B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7331B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7331B7
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7331B7#FFFFFF#000000##FFFFFF
##7331B71.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0055B4
Tritanopia (blue-blind)
#645271
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7331b7;
/* rgb */ color: rgb(115, 49, 183);
/* oklch */ color: oklch(47.7% 0.198 301.6);
Tailwind
colors: {
  custom: {
    50: '#a16fce',
    500: '#7331b7',
    950: '#000000',
  },
}
SCSS
$custom: #7331b7;
$custom-light: #a16fce;
$custom-dark: #000000;
JSON
{
  "hex": "#7331b7",
  "rgb": {
    "r": 115,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 269.552,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.47655,
    "c": 0.19845,
    "h": 301.6
  },
  "luminance": 0.0926
}

Semantic roles & 50–950 ramp

primary
#7331B7
secondary
#A2C87C
accent
#E14795
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7331B7

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

Preview Lab → · Contrast checker → · Palette generator →

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