#7A31BA#7A31BA

#7A31BA is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.7% C 0.203 H 303.9°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#7A31BA
RGBrgb(122, 49, 186)
HSLhsl(272, 58%, 46%)
HSVhsv(272, 74%, 73%)
CMYKcmyk(34.4%, 73.7%, 0%, 27.1%)
CIE-LABlab(37.63, 55.91, -59.13)
CIE-LCHlch(37.63, 81.37, 313.40°)
OKLaboklab(48.73% 0.1133 -0.1684)
OKLCHoklch(48.73% 0.203 303.9)
XYZxyz(17.9852, 9.8794, 47.4043)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A31BA #71BA31
analogous
#3531BA #7A31BA #BA31B5
triadic
#7A31BA #BA7A31 #31BA7A
tetradic
#7A31BA #BA3531 #71BA31 #31B5BA
square
#7A31BA #BA3531 #71BA31 #31B5BA
split-complementary
#7A31BA #B5BA31 #31BA35
monochromatic
#3A1759 #5A248A #7A31BA #9856D2 #B686DF

Accessibility & contrast

On white

7.06
#7A31BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#7A31BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A31BA
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A31BA#FFFFFF#000000##FFFFFF
##7A31BA1.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#0058B7
Tritanopia (blue-blind)
#6D5373
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7a31ba;
/* rgb */ color: rgb(122, 49, 186);
/* oklch */ color: oklch(48.7% 0.203 303.9);
Tailwind
colors: {
  custom: {
    50: '#a670d0',
    500: '#7a31ba',
    950: '#000000',
  },
}
SCSS
$custom: #7a31ba;
$custom-light: #a670d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a31ba",
  "rgb": {
    "r": 122,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 271.971,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48734,
    "c": 0.20294,
    "h": 303.9
  },
  "luminance": 0.09879
}

Semantic roles & 50–950 ramp

primary
#7A31BA
secondary
#A1C97E
accent
#E2468F
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A31BA

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

Preview Lab → · Contrast checker → · Palette generator →

#7A31BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva