#7B31CF#7B31CF

#7B31CF is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.6% C 0.224 H 299.3°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#7B31CF
RGBrgb(123, 49, 207)
HSLhsl(268, 62%, 50%)
HSVhsv(268, 76%, 81%)
CMYKcmyk(40.6%, 76.3%, 0%, 18.8%)
CIE-LABlab(39.43, 61.05, -68.44)
CIE-LCHlch(39.43, 91.71, 311.73°)
OKLaboklab(50.55% 0.1099 -0.1957)
OKLCHoklch(50.55% 0.224 299.3)
XYZxyz(20.5263, 10.9123, 60.0442)
Luminance0.1091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B31CF #85CF31
analogous
#3136CF #7B31CF #CA31CF
triadic
#7B31CF #CF7B31 #31CF7B
tetradic
#7B31CF #CF3136 #85CF31 #31CFCA
square
#7B31CF #CF3136 #85CF31 #31CFCA
split-complementary
#7B31CF #CFCA31 #36CF31
monochromatic
#40196C #5E259E #7B31CF #9B63DB #BB94E6

Accessibility & contrast

On white

6.60
#7B31CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#7B31CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B31CF
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B31CF#FFFFFF#000000##FFFFFF
##7B31CF1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD3
Deuteranopia (green-blind)
#005BCC
Tritanopia (blue-blind)
#675B7F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7b31cf;
/* rgb */ color: rgb(123, 49, 207);
/* oklch */ color: oklch(50.6% 0.224 299.3);
Tailwind
colors: {
  custom: {
    50: '#a971df',
    500: '#7b31cf',
    950: '#000000',
  },
}
SCSS
$custom: #7b31cf;
$custom-light: #a971df;
$custom-dark: #000000;
JSON
{
  "hex": "#7b31cf",
  "rgb": {
    "r": 123,
    "g": 49,
    "b": 207
  },
  "hsl": {
    "h": 268.101,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.50554,
    "c": 0.22442,
    "h": 299.3
  },
  "luminance": 0.10913
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B31CF

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

Preview Lab → · Contrast checker → · Palette generator →

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