#7831BD#7831BD

#7831BD is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.7% C 0.206 H 302.3°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#7831BD
RGBrgb(120, 49, 189)
HSLhsl(270, 59%, 47%)
HSVhsv(270, 74%, 74%)
CMYKcmyk(36.5%, 74.1%, 0%, 25.9%)
CIE-LABlab(37.60, 56.26, -60.95)
CIE-LCHlch(37.60, 82.94, 312.71°)
OKLaboklab(48.73% 0.1099 -0.1738)
OKLCHoklch(48.73% 0.206 302.3)
XYZxyz(18.0272, 9.8638, 49.0884)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7831BD #76BD31
analogous
#3231BD #7831BD #BD31BC
triadic
#7831BD #BD7831 #31BD78
tetradic
#7831BD #BD3231 #76BD31 #31BCBD
square
#7831BD #BD3231 #76BD31 #31BCBD
split-complementary
#7831BD #BCBD31 #31BD32
monochromatic
#3A185C #59248C #7831BD #9658D4 #B588E0

Accessibility & contrast

On white

7.06
#7831BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7831BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7831BD
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7831BD#FFFFFF#000000##FFFFFF
##7831BD1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C1
Deuteranopia (green-blind)
#0058BA
Tritanopia (blue-blind)
#695475
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7831bd;
/* rgb */ color: rgb(120, 49, 189);
/* oklch */ color: oklch(48.7% 0.206 302.3);
Tailwind
colors: {
  custom: {
    50: '#a570d2',
    500: '#7831bd',
    950: '#000000',
  },
}
SCSS
$custom: #7831bd;
$custom-light: #a570d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7831bd",
  "rgb": {
    "r": 120,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 270.429,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.4873,
    "c": 0.20561,
    "h": 302.3
  },
  "luminance": 0.09864
}

Semantic roles & 50–950 ramp

primary
#7831BD
secondary
#A4CA80
accent
#E24693
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7831BD

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

Preview Lab → · Contrast checker → · Palette generator →

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