#7A31B8#7A31B8

#7A31B8 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.6% C 0.201 H 304.5°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#7A31B8
RGBrgb(122, 49, 184)
HSLhsl(272, 58%, 46%)
HSVhsv(272, 73%, 72%)
CMYKcmyk(33.7%, 73.4%, 0%, 27.8%)
CIE-LABlab(37.47, 55.44, -58.19)
CIE-LCHlch(37.47, 80.38, 313.61°)
OKLaboklab(48.58% 0.1137 -0.1656)
OKLCHoklch(48.58% 0.201 304.5)
XYZxyz(17.7741, 9.7950, 46.2923)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A31B8 #6FB831
analogous
#3631B8 #7A31B8 #B831B3
triadic
#7A31B8 #B87A31 #31B87A
tetradic
#7A31B8 #B83631 #6FB831 #31B3B8
square
#7A31B8 #B83631 #6FB831 #31B3B8
split-complementary
#7A31B8 #B3B831 #31B836
monochromatic
#3A1757 #5A2488 #7A31B8 #9855D2 #B585DE

Accessibility & contrast

On white

7.10
#7A31B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7A31B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A31B8
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A31B8#FFFFFF#000000##FFFFFF
##7A31B81.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#0058B5
Tritanopia (blue-blind)
#6E5272
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7a31b8;
/* rgb */ color: rgb(122, 49, 184);
/* oklch */ color: oklch(48.6% 0.201 304.5);
Tailwind
colors: {
  custom: {
    50: '#a670ce',
    500: '#7a31b8',
    950: '#000000',
  },
}
SCSS
$custom: #7a31b8;
$custom-light: #a670ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7a31b8",
  "rgb": {
    "r": 122,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 272.444,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.48577,
    "c": 0.2009,
    "h": 304.5
  },
  "luminance": 0.09795
}

Semantic roles & 50–950 ramp

primary
#7A31B8
secondary
#9FC87D
accent
#E1478E
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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