#7A31B6#7A31B6

#7A31B6 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.4% C 0.199 H 305.0°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#7A31B6
RGBrgb(122, 49, 182)
HSLhsl(273, 58%, 45%)
HSVhsv(273, 73%, 71%)
CMYKcmyk(33%, 73.1%, 0%, 28.6%)
CIE-LABlab(37.32, 54.98, -57.26)
CIE-LCHlch(37.32, 79.38, 313.84°)
OKLaboklab(48.42% 0.1141 -0.1629)
OKLCHoklch(48.42% 0.199 305)
XYZxyz(17.5660, 9.7117, 45.1960)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A31B6 #6DB631
analogous
#3731B6 #7A31B6 #B631B0
triadic
#7A31B6 #B67A31 #31B67A
tetradic
#7A31B6 #B63731 #6DB631 #31B0B6
square
#7A31B6 #B63731 #6DB631 #31B0B6
split-complementary
#7A31B6 #B0B631 #31B637
monochromatic
#391756 #5A2486 #7A31B6 #9853D1 #B584DE

Accessibility & contrast

On white

7.14
#7A31B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7A31B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A31B6
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A31B6#FFFFFF#000000##FFFFFF
##7A31B61.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BA
Deuteranopia (green-blind)
#0058B3
Tritanopia (blue-blind)
#6F5171
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7a31b6;
/* rgb */ color: rgb(122, 49, 182);
/* oklch */ color: oklch(48.4% 0.199 305.0);
Tailwind
colors: {
  custom: {
    50: '#a670cd',
    500: '#7a31b6',
    950: '#000000',
  },
}
SCSS
$custom: #7a31b6;
$custom-light: #a670cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a31b6",
  "rgb": {
    "r": 122,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 272.932,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48422,
    "c": 0.19886,
    "h": 305
  },
  "luminance": 0.09712
}

Semantic roles & 50–950 ramp

primary
#7A31B6
secondary
#9EC77C
accent
#E1478C
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A31B6

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

Preview Lab → · Contrast checker → · Palette generator →

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