#7831BA#7831BA

#7831BA is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.203 H 303.1°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#7831BA
RGBrgb(120, 49, 186)
HSLhsl(271, 58%, 46%)
HSVhsv(271, 74%, 73%)
CMYKcmyk(35.5%, 73.7%, 0%, 27.1%)
CIE-LABlab(37.36, 55.54, -59.56)
CIE-LCHlch(37.36, 81.44, 313.00°)
OKLaboklab(48.49% 0.1105 -0.1697)
OKLCHoklch(48.49% 0.203 303.1)
XYZxyz(17.7049, 9.7349, 47.3911)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7831BA #73BA31
analogous
#3331BA #7831BA #BA31B7
triadic
#7831BA #BA7831 #31BA78
tetradic
#7831BA #BA3331 #73BA31 #31B7BA
square
#7831BA #BA3331 #73BA31 #31B7BA
split-complementary
#7831BA #B7BA31 #31BA33
monochromatic
#391759 #59248A #7831BA #9656D2 #B486DF

Accessibility & contrast

On white

7.13
#7831BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7831BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7831BA
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7831BA#FFFFFF#000000##FFFFFF
##7831BA1.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#0058B7
Tritanopia (blue-blind)
#6B5373
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7831ba;
/* rgb */ color: rgb(120, 49, 186);
/* oklch */ color: oklch(48.5% 0.203 303.1);
Tailwind
colors: {
  custom: {
    50: '#a570d0',
    500: '#7831ba',
    950: '#000000',
  },
}
SCSS
$custom: #7831ba;
$custom-light: #a570d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7831ba",
  "rgb": {
    "r": 120,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 271.095,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48491,
    "c": 0.20253,
    "h": 303.1
  },
  "luminance": 0.09735
}

Semantic roles & 50–950 ramp

primary
#7831BA
secondary
#A2C97E
accent
#E24691
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7831BA

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

Preview Lab → · Contrast checker → · Palette generator →

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