#7B31CE#7B31CE

#7B31CE is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.5% C 0.223 H 299.5°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#7B31CE
RGBrgb(123, 49, 206)
HSLhsl(268, 62%, 50%)
HSVhsv(268, 76%, 81%)
CMYKcmyk(40.3%, 76.2%, 0%, 19.2%)
CIE-LABlab(39.35, 60.81, -67.99)
CIE-LCHlch(39.35, 91.22, 311.81°)
OKLaboklab(50.47% 0.1102 -0.1944)
OKLCHoklch(50.47% 0.223 299.5)
XYZxyz(20.4045, 10.8636, 59.4024)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B31CE #84CE31
analogous
#3136CE #7B31CE #C931CE
triadic
#7B31CE #CE7B31 #31CE7B
tetradic
#7B31CE #CE3136 #84CE31 #31CEC9
square
#7B31CE #CE3136 #84CE31 #31CEC9
split-complementary
#7B31CE #CEC931 #36CE31
monochromatic
#40196B #5D259D #7B31CE #9B62DA #BA94E6

Accessibility & contrast

On white

6.62
#7B31CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#7B31CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B31CE
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B31CE#FFFFFF#000000##FFFFFF
##7B31CE1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD2
Deuteranopia (green-blind)
#005BCB
Tritanopia (blue-blind)
#675B7E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7b31ce;
/* rgb */ color: rgb(123, 49, 206);
/* oklch */ color: oklch(50.5% 0.223 299.5);
Tailwind
colors: {
  custom: {
    50: '#a871de',
    500: '#7b31ce',
    950: '#000000',
  },
}
SCSS
$custom: #7b31ce;
$custom-light: #a871de;
$custom-dark: #000000;
JSON
{
  "hex": "#7b31ce",
  "rgb": {
    "r": 123,
    "g": 49,
    "b": 206
  },
  "hsl": {
    "h": 268.28,
    "s": 61.569,
    "l": 50
  },
  "oklch": {
    "l": 0.50471,
    "c": 0.22342,
    "h": 299.5
  },
  "luminance": 0.10864
}

Semantic roles & 50–950 ramp

primary
#7B31CE
secondary
#AFD18A
accent
#E54399
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7B31CE

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

Preview Lab → · Contrast checker → · Palette generator →

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