#7A31C0#7A31C0

#7A31C0 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.2% C 0.209 H 302.4°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#7A31C0
RGBrgb(122, 49, 192)
HSLhsl(271, 59%, 47%)
HSVhsv(271, 74%, 75%)
CMYKcmyk(36.5%, 74.5%, 0%, 24.7%)
CIE-LABlab(38.09, 57.32, -61.89)
CIE-LCHlch(38.09, 84.36, 312.80°)
OKLaboklab(49.21% 0.1121 -0.1765)
OKLCHoklch(49.21% 0.209 302.4)
XYZxyz(18.6365, 10.1399, 50.8343)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A31C0 #77C031
analogous
#3231C0 #7A31C0 #C031BF
triadic
#7A31C0 #C07A31 #31C07A
tetradic
#7A31C0 #C03231 #77C031 #31BFC0
square
#7A31C0 #C03231 #77C031 #31BFC0
split-complementary
#7A31C0 #BFC031 #31C032
monochromatic
#3C185E #5B258F #7A31C0 #9859D5 #B78AE1

Accessibility & contrast

On white

6.94
#7A31C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7A31C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A31C0
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A31C0#FFFFFF#000000##FFFFFF
##7A31C01.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C4
Deuteranopia (green-blind)
#0059BD
Tritanopia (blue-blind)
#6B5576
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7a31c0;
/* rgb */ color: rgb(122, 49, 192);
/* oklch */ color: oklch(49.2% 0.209 302.4);
Tailwind
colors: {
  custom: {
    50: '#a670d4',
    500: '#7a31c0',
    950: '#000000',
  },
}
SCSS
$custom: #7a31c0;
$custom-light: #a670d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a31c0",
  "rgb": {
    "r": 122,
    "g": 49,
    "b": 192
  },
  "hsl": {
    "h": 270.629,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.49209,
    "c": 0.20905,
    "h": 302.4
  },
  "luminance": 0.1014
}

Semantic roles & 50–950 ramp

primary
#7A31C0
secondary
#A6CB82
accent
#E34592
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7A31C0

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

Preview Lab → · Contrast checker → · Palette generator →

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