#7A31B3#7A31B3

#7A31B3 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.2% C 0.196 H 305.8°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#7A31B3
RGBrgb(122, 49, 179)
HSLhsl(274, 57%, 45%)
HSVhsv(274, 73%, 70%)
CMYKcmyk(31.8%, 72.6%, 0%, 29.8%)
CIE-LABlab(37.09, 54.28, -55.85)
CIE-LCHlch(37.09, 77.88, 314.18°)
OKLaboklab(48.19% 0.1146 -0.1587)
OKLCHoklch(48.19% 0.196 305.8)
XYZxyz(17.2592, 9.5890, 43.5807)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A31B3 #6AB331
analogous
#3931B3 #7A31B3 #B331AB
triadic
#7A31B3 #B37A31 #31B37A
tetradic
#7A31B3 #B33931 #6AB331 #31ABB3
square
#7A31B3 #B33931 #6AB331 #31ABB3
split-complementary
#7A31B3 #ABB331 #31B339
monochromatic
#391753 #592483 #7A31B3 #9852D0 #B582DD

Accessibility & contrast

On white

7.20
#7A31B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7A31B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A31B3
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A31B3#FFFFFF#000000##FFFFFF
##7A31B31.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#70506F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7a31b3;
/* rgb */ color: rgb(122, 49, 179);
/* oklch */ color: oklch(48.2% 0.196 305.8);
Tailwind
colors: {
  custom: {
    50: '#a570cb',
    500: '#7a31b3',
    950: '#000000',
  },
}
SCSS
$custom: #7a31b3;
$custom-light: #a570cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a31b3",
  "rgb": {
    "r": 122,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 273.692,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48192,
    "c": 0.19579,
    "h": 305.8
  },
  "luminance": 0.09589
}

Semantic roles & 50–950 ramp

primary
#7A31B3
secondary
#9BC67A
accent
#E0488B
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A31B3

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

Preview Lab → · Contrast checker → · Palette generator →

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