#7B31C4#7B31C4

#7B31C4 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.6% C 0.213 H 301.9°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#7B31C4
RGBrgb(123, 49, 196)
HSLhsl(270, 60%, 48%)
HSVhsv(270, 75%, 77%)
CMYKcmyk(37.2%, 75%, 0%, 23.1%)
CIE-LABlab(38.54, 58.44, -63.50)
CIE-LCHlch(38.54, 86.30, 312.62°)
OKLaboklab(49.65% 0.1126 -0.1812)
OKLCHoklch(49.65% 0.213 301.9)
XYZxyz(19.2281, 10.3930, 53.2069)
Luminance0.1039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B31C4 #7AC431
analogous
#3131C4 #7B31C4 #C431C3
triadic
#7B31C4 #C47B31 #31C47B
tetradic
#7B31C4 #C43131 #7AC431 #31C3C4
square
#7B31C4 #C43131 #7AC431 #31C3C4
split-complementary
#7B31C4 #C3C431 #31C431
monochromatic
#3E1962 #5C2593 #7B31C4 #9A5CD6 #B88DE2

Accessibility & contrast

On white

6.82
#7B31C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#7B31C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B31C4
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B31C4#FFFFFF#000000##FFFFFF
##7B31C41.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b31c4;
/* rgb */ color: rgb(123, 49, 196);
/* oklch */ color: oklch(49.6% 0.213 301.9);
Tailwind
colors: {
  custom: {
    50: '#a771d7',
    500: '#7b31c4',
    950: '#000000',
  },
}
SCSS
$custom: #7b31c4;
$custom-light: #a771d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7b31c4",
  "rgb": {
    "r": 123,
    "g": 49,
    "b": 196
  },
  "hsl": {
    "h": 270.204,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.4965,
    "c": 0.2133,
    "h": 301.9
  },
  "luminance": 0.10393
}

Semantic roles & 50–950 ramp

primary
#7B31C4
secondary
#A8CD84
accent
#E34593
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7B31C4

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

Preview Lab → · Contrast checker → · Palette generator →

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