#7A31B7#7A31B7

#7A31B7 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.5% C 0.200 H 304.7°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#7A31B7
RGBrgb(122, 49, 183)
HSLhsl(273, 58%, 45%)
HSVhsv(273, 73%, 72%)
CMYKcmyk(33.3%, 73.2%, 0%, 28.2%)
CIE-LABlab(37.40, 55.21, -57.73)
CIE-LCHlch(37.40, 79.88, 313.72°)
OKLaboklab(48.5% 0.1139 -0.1642)
OKLCHoklch(48.5% 0.2 304.7)
XYZxyz(17.6697, 9.7532, 45.7422)
Luminance0.0975 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A31B7 #6EB731
analogous
#3731B7 #7A31B7 #B731B1
triadic
#7A31B7 #B77A31 #31B77A
tetradic
#7A31B7 #B73731 #6EB731 #31B1B7
square
#7A31B7 #B73731 #6EB731 #31B1B7
split-complementary
#7A31B7 #B1B731 #31B737
monochromatic
#3A1756 #5A2487 #7A31B7 #9854D1 #B584DE

Accessibility & contrast

On white

7.12
#7A31B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7A31B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A31B7
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A31B7#FFFFFF#000000##FFFFFF
##7A31B71.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#0058B4
Tritanopia (blue-blind)
#6E5171
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7a31b7;
/* rgb */ color: rgb(122, 49, 183);
/* oklch */ color: oklch(48.5% 0.200 304.7);
Tailwind
colors: {
  custom: {
    50: '#a670cd',
    500: '#7a31b7',
    950: '#000000',
  },
}
SCSS
$custom: #7a31b7;
$custom-light: #a670cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a31b7",
  "rgb": {
    "r": 122,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 272.687,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.485,
    "c": 0.19987,
    "h": 304.7
  },
  "luminance": 0.09753
}

Semantic roles & 50–950 ramp

primary
#7A31B7
secondary
#9FC87C
accent
#E1478D
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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