#7331B1#7331B1

#7331B1 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.2% C 0.192 H 303.2°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#7331B1
RGBrgb(115, 49, 177)
HSLhsl(271, 57%, 44%)
HSVhsv(271, 72%, 69%)
CMYKcmyk(35%, 72.3%, 0%, 30.6%)
CIE-LABlab(36.01, 52.46, -56.46)
CIE-LCHlch(36.01, 77.07, 312.90°)
OKLaboklab(47.18% 0.1052 -0.1608)
OKLCHoklch(47.18% 0.192 303.2)
XYZxyz(16.1025, 9.0158, 42.4783)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7331B1 #6FB131
analogous
#3331B1 #7331B1 #B131AF
triadic
#7331B1 #B17331 #31B173
tetradic
#7331B1 #B13331 #6FB131 #31AFB1
square
#7331B1 #B13331 #6FB131 #31AFB1
split-complementary
#7331B1 #AFB131 #31B133
monochromatic
#351651 #542481 #7331B1 #9251CF #B080DC

Accessibility & contrast

On white

7.49
#7331B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7331B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7331B1
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7331B1#FFFFFF#000000##FFFFFF
##7331B11.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0054AE
Tritanopia (blue-blind)
#67506E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7331b1;
/* rgb */ color: rgb(115, 49, 177);
/* oklch */ color: oklch(47.2% 0.192 303.2);
Tailwind
colors: {
  custom: {
    50: '#a16fc9',
    500: '#7331b1',
    950: '#000000',
  },
}
SCSS
$custom: #7331b1;
$custom-light: #a16fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7331b1",
  "rgb": {
    "r": 115,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 270.938,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.47179,
    "c": 0.19214,
    "h": 303.2
  },
  "luminance": 0.09016
}

Semantic roles & 50–950 ramp

primary
#7331B1
secondary
#9EC579
accent
#E04892
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7331B1

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

Preview Lab → · Contrast checker → · Palette generator →

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