#7831BB#7831BB

#7831BB is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.6% C 0.204 H 302.8°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#7831BB
RGBrgb(120, 49, 187)
HSLhsl(271, 58%, 46%)
HSVhsv(271, 74%, 73%)
CMYKcmyk(35.8%, 73.8%, 0%, 26.7%)
CIE-LABlab(37.44, 55.78, -60.03)
CIE-LCHlch(37.44, 81.94, 312.90°)
OKLaboklab(48.57% 0.1103 -0.1711)
OKLCHoklch(48.57% 0.204 302.8)
XYZxyz(17.8116, 9.7775, 47.9530)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7831BB #74BB31
analogous
#3331BB #7831BB #BB31B9
triadic
#7831BB #BB7831 #31BB78
tetradic
#7831BB #BB3331 #74BB31 #31B9BB
square
#7831BB #BB3331 #74BB31 #31B9BB
split-complementary
#7831BB #B9BB31 #31BB33
monochromatic
#3A185A #59248B #7831BB #9656D3 #B487E0

Accessibility & contrast

On white

7.11
#7831BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7831BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7831BB
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7831BB#FFFFFF#000000##FFFFFF
##7831BB1.007.112.967.11
#FFFFFF7.111.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#0058B8
Tritanopia (blue-blind)
#6A5374
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7831bb;
/* rgb */ color: rgb(120, 49, 187);
/* oklch */ color: oklch(48.6% 0.204 302.8);
Tailwind
colors: {
  custom: {
    50: '#a570d0',
    500: '#7831bb',
    950: '#000000',
  },
}
SCSS
$custom: #7831bb;
$custom-light: #a570d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7831bb",
  "rgb": {
    "r": 120,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 270.87,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48571,
    "c": 0.20355,
    "h": 302.8
  },
  "luminance": 0.09778
}

Semantic roles & 50–950 ramp

primary
#7831BB
secondary
#A3C97F
accent
#E24692
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7831BB

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

Preview Lab → · Contrast checker → · Palette generator →

#7831BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva