#7331B2#7331B2

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

Color values

HEX#7331B2
RGBrgb(115, 49, 178)
HSLhsl(271, 57%, 45%)
HSVhsv(271, 72%, 70%)
CMYKcmyk(35.4%, 72.5%, 0%, 30.2%)
CIE-LABlab(36.09, 52.70, -56.93)
CIE-LCHlch(36.09, 77.58, 312.79°)
OKLaboklab(47.26% 0.105 -0.1621)
OKLCHoklch(47.26% 0.193 302.9)
XYZxyz(16.2025, 9.0558, 43.0052)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7331B2 #70B231
analogous
#3331B2 #7331B2 #B231B0
triadic
#7331B2 #B27331 #31B273
tetradic
#7331B2 #B23331 #70B231 #31B0B2
square
#7331B2 #B23331 #70B231 #31B0B2
split-complementary
#7331B2 #B0B231 #31B233
monochromatic
#351752 #542482 #7331B2 #9251CF #B081DC

Accessibility & contrast

On white

7.47
#7331B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7331B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7331B2
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7331B2#FFFFFF#000000##FFFFFF
##7331B21.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0055AF
Tritanopia (blue-blind)
#66506E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7331b2;
/* rgb */ color: rgb(115, 49, 178);
/* oklch */ color: oklch(47.3% 0.193 302.9);
Tailwind
colors: {
  custom: {
    50: '#a16fca',
    500: '#7331b2',
    950: '#000000',
  },
}
SCSS
$custom: #7331b2;
$custom-light: #a16fca;
$custom-dark: #000000;
JSON
{
  "hex": "#7331b2",
  "rgb": {
    "r": 115,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 270.698,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47258,
    "c": 0.19319,
    "h": 302.9
  },
  "luminance": 0.09056
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7331B2

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

Preview Lab → · Contrast checker → · Palette generator →

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