#7331A7#7331A7

#7331A7 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.4% C 0.182 H 306.1°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#7331A7
RGBrgb(115, 49, 167)
HSLhsl(274, 55%, 42%)
HSVhsv(274, 71%, 65%)
CMYKcmyk(31.1%, 70.7%, 0%, 34.5%)
CIE-LABlab(35.27, 50.08, -51.70)
CIE-LCHlch(35.27, 71.98, 314.09°)
OKLaboklab(46.41% 0.1069 -0.1468)
OKLCHoklch(46.41% 0.182 306.1)
XYZxyz(15.1421, 8.6316, 37.4201)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7331A7 #65A731
analogous
#3831A7 #7331A7 #A731A0
triadic
#7331A7 #A77331 #31A773
tetradic
#7331A7 #A73831 #65A731 #31A0A7
square
#7331A7 #A73831 #65A731 #31A0A7
split-complementary
#7331A7 #A0A731 #31A738
monochromatic
#321548 #522378 #7331A7 #924BCA #AF7AD8

Accessibility & contrast

On white

7.70
#7331A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7331A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7331A7
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7331A7#FFFFFF#000000##FFFFFF
##7331A71.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#0453A4
Tritanopia (blue-blind)
#6A4C68
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7331a7;
/* rgb */ color: rgb(115, 49, 167);
/* oklch */ color: oklch(46.4% 0.182 306.1);
Tailwind
colors: {
  custom: {
    50: '#a06fc2',
    500: '#7331a7',
    950: '#000000',
  },
}
SCSS
$custom: #7331a7;
$custom-light: #a06fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#7331a7",
  "rgb": {
    "r": 115,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 273.559,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4641,
    "c": 0.18157,
    "h": 306.1
  },
  "luminance": 0.08631
}

Semantic roles & 50–950 ramp

primary
#7331A7
secondary
#95C173
accent
#DE4A8B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0812
muted
#7F7B81

Preview Lab

Preview with #7331A7

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

Preview Lab → · Contrast checker → · Palette generator →

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