#7A31BC#7A31BC

#7A31BC is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.9% C 0.205 H 303.4°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#7A31BC
RGBrgb(122, 49, 188)
HSLhsl(272, 59%, 46%)
HSVhsv(272, 74%, 74%)
CMYKcmyk(35.1%, 73.9%, 0%, 26.3%)
CIE-LABlab(37.78, 56.38, -60.05)
CIE-LCHlch(37.78, 82.37, 313.19°)
OKLaboklab(48.89% 0.1129 -0.1711)
OKLCHoklch(48.89% 0.205 303.4)
XYZxyz(18.1993, 9.9651, 48.5319)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A31BC #73BC31
analogous
#3531BC #7A31BC #BC31B9
triadic
#7A31BC #BC7A31 #31BC7A
tetradic
#7A31BC #BC3531 #73BC31 #31B9BC
square
#7A31BC #BC3531 #73BC31 #31B9BC
split-complementary
#7A31BC #B9BC31 #31BC35
monochromatic
#3B185B #5A248B #7A31BC #9857D3 #B688E0

Accessibility & contrast

On white

7.02
#7A31BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#7A31BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A31BC
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A31BC#FFFFFF#000000##FFFFFF
##7A31BC1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#0059B9
Tritanopia (blue-blind)
#6D5374
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7a31bc;
/* rgb */ color: rgb(122, 49, 188);
/* oklch */ color: oklch(48.9% 0.205 303.4);
Tailwind
colors: {
  custom: {
    50: '#a670d1',
    500: '#7a31bc',
    950: '#000000',
  },
}
SCSS
$custom: #7a31bc;
$custom-light: #a670d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a31bc",
  "rgb": {
    "r": 122,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 271.511,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.48891,
    "c": 0.20498,
    "h": 303.4
  },
  "luminance": 0.09965
}

Semantic roles & 50–950 ramp

primary
#7A31BC
secondary
#A3CA7F
accent
#E24690
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7A31BC

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

Preview Lab → · Contrast checker → · Palette generator →

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