#7331AB#7331AB

#7331AB is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.7% C 0.186 H 304.9°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#7331AB
RGBrgb(115, 49, 171)
HSLhsl(272, 55%, 43%)
HSVhsv(272, 71%, 67%)
CMYKcmyk(32.7%, 71.3%, 0%, 32.9%)
CIE-LABlab(35.56, 51.03, -53.62)
CIE-LCHlch(35.56, 74.02, 313.58°)
OKLaboklab(46.71% 0.1063 -0.1524)
OKLCHoklch(46.71% 0.186 304.9)
XYZxyz(15.5176, 8.7818, 39.3977)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7331AB #69AB31
analogous
#3631AB #7331AB #AB31A6
triadic
#7331AB #AB7331 #31AB73
tetradic
#7331AB #AB3631 #69AB31 #31A6AB
square
#7331AB #AB3631 #69AB31 #31A6AB
split-complementary
#7331AB #A6AB31 #31AB36
monochromatic
#33164C #53237B #7331AB #924DCC #AF7DDA

Accessibility & contrast

On white

7.62
#7331AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7331AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7331AB
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7331AB#FFFFFF#000000##FFFFFF
##7331AB1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AF
Deuteranopia (green-blind)
#0054A8
Tritanopia (blue-blind)
#694E6B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7331ab;
/* rgb */ color: rgb(115, 49, 171);
/* oklch */ color: oklch(46.7% 0.186 304.9);
Tailwind
colors: {
  custom: {
    50: '#a06fc5',
    500: '#7331ab',
    950: '#000000',
  },
}
SCSS
$custom: #7331ab;
$custom-light: #a06fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7331ab",
  "rgb": {
    "r": 115,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 272.459,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.46714,
    "c": 0.1858,
    "h": 304.9
  },
  "luminance": 0.08782
}

Semantic roles & 50–950 ramp

primary
#7331AB
secondary
#99C275
accent
#DF498E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7331AB

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

Preview Lab → · Contrast checker → · Palette generator →

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