#7331AE#7331AE

#7331AE is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.9% C 0.189 H 304.0°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#7331AE
RGBrgb(115, 49, 174)
HSLhsl(272, 56%, 44%)
HSVhsv(272, 72%, 68%)
CMYKcmyk(33.9%, 71.8%, 0%, 31.8%)
CIE-LABlab(35.79, 51.75, -55.04)
CIE-LCHlch(35.79, 75.55, 313.23°)
OKLaboklab(46.95% 0.1058 -0.1566)
OKLCHoklch(46.95% 0.189 304)
XYZxyz(15.8068, 8.8975, 40.9208)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7331AE #6CAE31
analogous
#3431AE #7331AE #AE31AA
triadic
#7331AE #AE7331 #31AE73
tetradic
#7331AE #AE3431 #6CAE31 #31AAAE
square
#7331AE #AE3431 #6CAE31 #31AAAE
split-complementary
#7331AE #AAAE31 #31AE34
monochromatic
#34164E #53247E #7331AE #924FCD #AF7FDB

Accessibility & contrast

On white

7.56
#7331AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7331AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7331AE
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7331AE#FFFFFF#000000##FFFFFF
##7331AE1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B2
Deuteranopia (green-blind)
#0054AB
Tritanopia (blue-blind)
#684F6C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7331ae;
/* rgb */ color: rgb(115, 49, 174);
/* oklch */ color: oklch(46.9% 0.189 304.0);
Tailwind
colors: {
  custom: {
    50: '#a06fc7',
    500: '#7331ae',
    950: '#000000',
  },
}
SCSS
$custom: #7331ae;
$custom-light: #a06fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7331ae",
  "rgb": {
    "r": 115,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 271.68,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.46945,
    "c": 0.18897,
    "h": 304
  },
  "luminance": 0.08897
}

Semantic roles & 50–950 ramp

primary
#7331AE
secondary
#9BC477
accent
#DF4890
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7331AE

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

Preview Lab → · Contrast checker → · Palette generator →

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