#7B31BA#7B31BA

#7B31BA is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.9% C 0.203 H 304.4°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#7B31BA
RGBrgb(123, 49, 186)
HSLhsl(272, 58%, 46%)
HSVhsv(272, 74%, 73%)
CMYKcmyk(33.9%, 73.7%, 0%, 27.1%)
CIE-LABlab(37.76, 56.09, -58.90)
CIE-LCHlch(37.76, 81.34, 313.60°)
OKLaboklab(48.86% 0.1147 -0.1677)
OKLCHoklch(48.86% 0.203 304.4)
XYZxyz(18.1276, 9.9528, 47.4109)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B31BA #70BA31
analogous
#3631BA #7B31BA #BA31B4
triadic
#7B31BA #BA7B31 #31BA7B
tetradic
#7B31BA #BA3631 #70BA31 #31B4BA
square
#7B31BA #BA3631 #70BA31 #31B4BA
split-complementary
#7B31BA #B4BA31 #31BA36
monochromatic
#3B1759 #5B248A #7B31BA #9956D2 #B686DF

Accessibility & contrast

On white

7.02
#7B31BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#7B31BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B31BA
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B31BA#FFFFFF#000000##FFFFFF
##7B31BA1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#0059B7
Tritanopia (blue-blind)
#6F5373
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7b31ba;
/* rgb */ color: rgb(123, 49, 186);
/* oklch */ color: oklch(48.9% 0.203 304.4);
Tailwind
colors: {
  custom: {
    50: '#a770d0',
    500: '#7b31ba',
    950: '#000000',
  },
}
SCSS
$custom: #7b31ba;
$custom-light: #a770d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b31ba",
  "rgb": {
    "r": 123,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 272.409,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48856,
    "c": 0.20315,
    "h": 304.4
  },
  "luminance": 0.09953
}

Semantic roles & 50–950 ramp

primary
#7B31BA
secondary
#A0C97E
accent
#E2468E
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7B31BA

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

Preview Lab → · Contrast checker → · Palette generator →

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