#7B31BB#7B31BB

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

Color values

HEX#7B31BB
RGBrgb(123, 49, 187)
HSLhsl(272, 58%, 46%)
HSVhsv(272, 74%, 73%)
CMYKcmyk(34.2%, 73.8%, 0%, 26.7%)
CIE-LABlab(37.83, 56.33, -59.37)
CIE-LCHlch(37.83, 81.84, 313.49°)
OKLaboklab(48.93% 0.1145 -0.169)
OKLCHoklch(48.93% 0.204 304.1)
XYZxyz(18.2343, 9.9955, 47.9728)
Luminance0.0999 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B31BB #71BB31
analogous
#3631BB #7B31BB #BB31B6
triadic
#7B31BB #BB7B31 #31BB7B
tetradic
#7B31BB #BB3631 #71BB31 #31B6BB
square
#7B31BB #BB3631 #71BB31 #31B6BB
split-complementary
#7B31BB #B6BB31 #31BB36
monochromatic
#3B185A #5B248B #7B31BB #9956D3 #B687E0

Accessibility & contrast

On white

7.00
#7B31BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#7B31BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B31BB
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B31BB#FFFFFF#000000##FFFFFF
##7B31BB1.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#0059B8
Tritanopia (blue-blind)
#6F5374
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7b31bb;
/* rgb */ color: rgb(123, 49, 187);
/* oklch */ color: oklch(48.9% 0.204 304.1);
Tailwind
colors: {
  custom: {
    50: '#a770d0',
    500: '#7b31bb',
    950: '#000000',
  },
}
SCSS
$custom: #7b31bb;
$custom-light: #a770d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b31bb",
  "rgb": {
    "r": 123,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 272.174,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48934,
    "c": 0.20417,
    "h": 304.1
  },
  "luminance": 0.09995
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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