#7B31C5#7B31C5

#7B31C5 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.7% C 0.214 H 301.6°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#7B31C5
RGBrgb(123, 49, 197)
HSLhsl(270, 60%, 48%)
HSVhsv(270, 75%, 77%)
CMYKcmyk(37.6%, 75.1%, 0%, 22.7%)
CIE-LABlab(38.62, 58.67, -63.95)
CIE-LCHlch(38.62, 86.79, 312.54°)
OKLaboklab(49.73% 0.1123 -0.1825)
OKLCHoklch(49.73% 0.214 301.6)
XYZxyz(19.3423, 10.4387, 53.8083)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B31C5 #7BC531
analogous
#3131C5 #7B31C5 #C531C5
triadic
#7B31C5 #C57B31 #31C57B
tetradic
#7B31C5 #C53131 #7BC531 #31C5C5
square
#7B31C5 #C53131 #7BC531 #31C5C5
split-complementary
#7B31C5 #C5C531 #31C531
monochromatic
#3E1963 #5C2594 #7B31C5 #9A5DD7 #B88EE3

Accessibility & contrast

On white

6.80
#7B31C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7B31C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B31C5
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B31C5#FFFFFF#000000##FFFFFF
##7B31C51.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC9
Deuteranopia (green-blind)
#005AC2
Tritanopia (blue-blind)
#6B5779
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7b31c5;
/* rgb */ color: rgb(123, 49, 197);
/* oklch */ color: oklch(49.7% 0.214 301.6);
Tailwind
colors: {
  custom: {
    50: '#a871d8',
    500: '#7b31c5',
    950: '#000000',
  },
}
SCSS
$custom: #7b31c5;
$custom-light: #a871d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b31c5",
  "rgb": {
    "r": 123,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 270,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.49731,
    "c": 0.21431,
    "h": 301.6
  },
  "luminance": 0.10439
}

Semantic roles & 50–950 ramp

primary
#7B31C5
secondary
#A9CD85
accent
#E34494
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7B31C5

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

Preview Lab → · Contrast checker → · Palette generator →

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