#7B31C1#7B31C1

#7B31C1 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.4% C 0.210 H 302.6°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#7B31C1
RGBrgb(123, 49, 193)
HSLhsl(271, 60%, 47%)
HSVhsv(271, 75%, 76%)
CMYKcmyk(36.3%, 74.6%, 0%, 24.3%)
CIE-LABlab(38.30, 57.73, -62.13)
CIE-LCHlch(38.30, 84.81, 312.90°)
OKLaboklab(49.41% 0.1132 -0.1772)
OKLCHoklch(49.41% 0.21 302.6)
XYZxyz(18.8900, 10.2578, 51.4265)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B31C1 #77C131
analogous
#3331C1 #7B31C1 #C131BF
triadic
#7B31C1 #C17B31 #31C17B
tetradic
#7B31C1 #C13331 #77C131 #31BFC1
square
#7B31C1 #C13331 #77C131 #31BFC1
split-complementary
#7B31C1 #BFC131 #31C133
monochromatic
#3D185F #5C2590 #7B31C1 #995AD5 #B78BE2

Accessibility & contrast

On white

6.88
#7B31C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7B31C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B31C1
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B31C1#FFFFFF#000000##FFFFFF
##7B31C11.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C5
Deuteranopia (green-blind)
#005ABE
Tritanopia (blue-blind)
#6C5577
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7b31c1;
/* rgb */ color: rgb(123, 49, 193);
/* oklch */ color: oklch(49.4% 0.210 302.6);
Tailwind
colors: {
  custom: {
    50: '#a771d5',
    500: '#7b31c1',
    950: '#000000',
  },
}
SCSS
$custom: #7b31c1;
$custom-light: #a771d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b31c1",
  "rgb": {
    "r": 123,
    "g": 49,
    "b": 193
  },
  "hsl": {
    "h": 270.833,
    "s": 59.504,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49409,
    "c": 0.21026,
    "h": 302.6
  },
  "luminance": 0.10258
}

Semantic roles & 50–950 ramp

primary
#7B31C1
secondary
#A6CC82
accent
#E34592
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7B31C1

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

Preview Lab → · Contrast checker → · Palette generator →

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