#7A31BB#7A31BB

#7A31BB is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.8% C 0.204 H 303.7°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#7A31BB
RGBrgb(122, 49, 187)
HSLhsl(272, 58%, 46%)
HSVhsv(272, 74%, 73%)
CMYKcmyk(34.8%, 73.8%, 0%, 26.7%)
CIE-LABlab(37.70, 56.14, -59.59)
CIE-LCHlch(37.70, 81.87, 313.30°)
OKLaboklab(48.81% 0.1131 -0.1697)
OKLCHoklch(48.81% 0.204 303.7)
XYZxyz(18.0919, 9.9221, 47.9661)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A31BB #72BB31
analogous
#3531BB #7A31BB #BB31B7
triadic
#7A31BB #BB7A31 #31BB7A
tetradic
#7A31BB #BB3531 #72BB31 #31B7BB
square
#7A31BB #BB3531 #72BB31 #31B7BB
split-complementary
#7A31BB #B7BB31 #31BB35
monochromatic
#3B185A #5A248B #7A31BB #9856D3 #B687E0

Accessibility & contrast

On white

7.04
#7A31BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A31BB
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A31BB#FFFFFF#000000##FFFFFF
##7A31BB1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#0058B8
Tritanopia (blue-blind)
#6D5374
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7a31bb;
/* rgb */ color: rgb(122, 49, 187);
/* oklch */ color: oklch(48.8% 0.204 303.7);
Tailwind
colors: {
  custom: {
    50: '#a670d0',
    500: '#7a31bb',
    950: '#000000',
  },
}
SCSS
$custom: #7a31bb;
$custom-light: #a670d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a31bb",
  "rgb": {
    "r": 122,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 271.739,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48812,
    "c": 0.20396,
    "h": 303.7
  },
  "luminance": 0.09922
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7A31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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