#7B31BD#7B31BD

#7B31BD is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.1% C 0.206 H 303.6°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#7B31BD
RGBrgb(123, 49, 189)
HSLhsl(272, 59%, 47%)
HSVhsv(272, 74%, 74%)
CMYKcmyk(34.9%, 74.1%, 0%, 25.9%)
CIE-LABlab(37.99, 56.79, -60.29)
CIE-LCHlch(37.99, 82.83, 313.29°)
OKLaboklab(49.09% 0.1141 -0.1718)
OKLCHoklch(49.09% 0.206 303.6)
XYZxyz(18.4499, 10.0817, 49.1082)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B31BD #73BD31
analogous
#3531BD #7B31BD #BD31B9
triadic
#7B31BD #BD7B31 #31BD7B
tetradic
#7B31BD #BD3531 #73BD31 #31B9BD
square
#7B31BD #BD3531 #73BD31 #31B9BD
split-complementary
#7B31BD #B9BD31 #31BD35
monochromatic
#3C185C #5B248C #7B31BD #9958D4 #B788E0

Accessibility & contrast

On white

6.96
#7B31BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#7B31BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B31BD
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B31BD#FFFFFF#000000##FFFFFF
##7B31BD1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C1
Deuteranopia (green-blind)
#0059BA
Tritanopia (blue-blind)
#6E5475
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7b31bd;
/* rgb */ color: rgb(123, 49, 189);
/* oklch */ color: oklch(49.1% 0.206 303.6);
Tailwind
colors: {
  custom: {
    50: '#a770d2',
    500: '#7b31bd',
    950: '#000000',
  },
}
SCSS
$custom: #7b31bd;
$custom-light: #a770d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b31bd",
  "rgb": {
    "r": 123,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 271.714,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49091,
    "c": 0.2062,
    "h": 303.6
  },
  "luminance": 0.10082
}

Semantic roles & 50–950 ramp

primary
#7B31BD
secondary
#A3CA80
accent
#E2468F
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7B31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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