#7B31AE#7B31AE

#7B31AE is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.9% C 0.191 H 307.7°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#7B31AE
RGBrgb(123, 49, 174)
HSLhsl(276, 56%, 44%)
HSVhsv(276, 72%, 68%)
CMYKcmyk(29.3%, 71.8%, 0%, 31.8%)
CIE-LABlab(36.86, 53.33, -53.25)
CIE-LCHlch(36.86, 75.36, 315.05°)
OKLaboklab(47.94% 0.1168 -0.151)
OKLCHoklch(47.94% 0.191 307.7)
XYZxyz(16.9051, 9.4638, 40.9723)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B31AE #64AE31
analogous
#3C31AE #7B31AE #AE31A2
triadic
#7B31AE #AE7B31 #31AE7B
tetradic
#7B31AE #AE3C31 #64AE31 #31A2AE
square
#7B31AE #AE3C31 #64AE31 #31A2AE
split-complementary
#7B31AE #A2AE31 #31AE3C
monochromatic
#37164E #59247E #7B31AE #9A4FCD #B57FDB

Accessibility & contrast

On white

7.26
#7B31AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7B31AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B31AE
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B31AE#FFFFFF#000000##FFFFFF
##7B31AE1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B2
Deuteranopia (green-blind)
#0957AB
Tritanopia (blue-blind)
#734E6C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7b31ae;
/* rgb */ color: rgb(123, 49, 174);
/* oklch */ color: oklch(47.9% 0.191 307.7);
Tailwind
colors: {
  custom: {
    50: '#a670c7',
    500: '#7b31ae',
    950: '#000000',
  },
}
SCSS
$custom: #7b31ae;
$custom-light: #a670c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b31ae",
  "rgb": {
    "r": 123,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 275.52,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4794,
    "c": 0.19095,
    "h": 307.7
  },
  "luminance": 0.09464
}

Semantic roles & 50–950 ramp

primary
#7B31AE
secondary
#96C477
accent
#DF4886
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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