#7B31CA#7B31CA

#7B31CA is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.1% C 0.219 H 300.4°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#7B31CA
RGBrgb(123, 49, 202)
HSLhsl(269, 61%, 49%)
HSVhsv(269, 76%, 79%)
CMYKcmyk(39.1%, 75.7%, 0%, 20.8%)
CIE-LABlab(39.02, 59.86, -66.21)
CIE-LCHlch(39.02, 89.25, 312.12°)
OKLaboklab(50.14% 0.1112 -0.1891)
OKLCHoklch(50.14% 0.219 300.4)
XYZxyz(19.9247, 10.6717, 56.8758)
Luminance0.1067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B31CA #80CA31
analogous
#3133CA #7B31CA #C831CA
triadic
#7B31CA #CA7B31 #31CA7B
tetradic
#7B31CA #CA3133 #80CA31 #31CAC8
square
#7B31CA #CA3133 #80CA31 #31CAC8
split-complementary
#7B31CA #CAC831 #33CA31
monochromatic
#3F1967 #5D2599 #7B31CA #9A60D8 #B991E4

Accessibility & contrast

On white

6.70
#7B31CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7B31CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B31CA
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B31CA#FFFFFF#000000##FFFFFF
##7B31CA1.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCE
Deuteranopia (green-blind)
#005BC7
Tritanopia (blue-blind)
#69597C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7b31ca;
/* rgb */ color: rgb(123, 49, 202);
/* oklch */ color: oklch(50.1% 0.219 300.4);
Tailwind
colors: {
  custom: {
    50: '#a871db',
    500: '#7b31ca',
    950: '#000000',
  },
}
SCSS
$custom: #7b31ca;
$custom-light: #a871db;
$custom-dark: #000000;
JSON
{
  "hex": "#7b31ca",
  "rgb": {
    "r": 123,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 269.02,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5014,
    "c": 0.21937,
    "h": 300.4
  },
  "luminance": 0.10672
}

Semantic roles & 50–950 ramp

primary
#7B31CA
secondary
#ADCF88
accent
#E44497
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7B31CA

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

Preview Lab → · Contrast checker → · Palette generator →

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