#7B31AD#7B31AD

#7B31AD is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.9% C 0.190 H 308.0°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#7B31AD
RGBrgb(123, 49, 173)
HSLhsl(276, 56%, 44%)
HSVhsv(276, 72%, 68%)
CMYKcmyk(28.9%, 71.7%, 0%, 32.2%)
CIE-LABlab(36.79, 53.10, -52.77)
CIE-LCHlch(36.79, 74.87, 315.18°)
OKLaboklab(47.87% 0.117 -0.1496)
OKLCHoklch(47.87% 0.19 308)
XYZxyz(16.8079, 9.4250, 40.4608)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B31AD #63AD31
analogous
#3D31AD #7B31AD #AD31A1
triadic
#7B31AD #AD7B31 #31AD7B
tetradic
#7B31AD #AD3D31 #63AD31 #31A1AD
square
#7B31AD #AD3D31 #63AD31 #31A1AD
split-complementary
#7B31AD #A1AD31 #31AD3D
monochromatic
#37164E #59237D #7B31AD #9A4ECD #B57EDA

Accessibility & contrast

On white

7.28
#7B31AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B31AD
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B31AD#FFFFFF#000000##FFFFFF
##7B31AD1.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B1
Deuteranopia (green-blind)
#0D57AA
Tritanopia (blue-blind)
#734D6C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7b31ad;
/* rgb */ color: rgb(123, 49, 173);
/* oklch */ color: oklch(47.9% 0.190 308.0);
Tailwind
colors: {
  custom: {
    50: '#a670c6',
    500: '#7b31ad',
    950: '#000000',
  },
}
SCSS
$custom: #7b31ad;
$custom-light: #a670c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b31ad",
  "rgb": {
    "r": 123,
    "g": 49,
    "b": 173
  },
  "hsl": {
    "h": 275.806,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47866,
    "c": 0.18994,
    "h": 308
  },
  "luminance": 0.09425
}

Semantic roles & 50–950 ramp

primary
#7B31AD
secondary
#95C377
accent
#DF4985
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B31AD

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

Preview Lab → · Contrast checker → · Palette generator →

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