#7831A8#7831A8

#7831A8 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.1% C 0.184 H 308.1°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#7831A8
RGBrgb(120, 49, 168)
HSLhsl(276, 55%, 43%)
HSVhsv(276, 71%, 66%)
CMYKcmyk(28.6%, 70.8%, 0%, 34.1%)
CIE-LABlab(36.02, 51.35, -51.05)
CIE-LCHlch(36.02, 72.41, 315.17°)
OKLaboklab(47.11% 0.1136 -0.1447)
OKLCHoklch(47.11% 0.184 308.1)
XYZxyz(15.9105, 9.0171, 37.9405)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7831A8 #61A831
analogous
#3C31A8 #7831A8 #A8319D
triadic
#7831A8 #A87831 #31A878
tetradic
#7831A8 #A83C31 #61A831 #319DA8
square
#7831A8 #A83C31 #61A831 #319DA8
split-complementary
#7831A8 #9DA831 #31A83C
monochromatic
#341549 #562379 #7831A8 #974CCB #B37BD8

Accessibility & contrast

On white

7.49
#7831A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7831A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7831A8
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7831A8#FFFFFF#000000##FFFFFF
##7831A81.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#1255A5
Tritanopia (blue-blind)
#704C69
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7831a8;
/* rgb */ color: rgb(120, 49, 168);
/* oklch */ color: oklch(47.1% 0.184 308.1);
Tailwind
colors: {
  custom: {
    50: '#a36fc3',
    500: '#7831a8',
    950: '#000000',
  },
}
SCSS
$custom: #7831a8;
$custom-light: #a36fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7831a8",
  "rgb": {
    "r": 120,
    "g": 49,
    "b": 168
  },
  "hsl": {
    "h": 275.798,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47114,
    "c": 0.18396,
    "h": 308.1
  },
  "luminance": 0.09017
}

Semantic roles & 50–950 ramp

primary
#7831A8
secondary
#93C174
accent
#DE4A86
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7831A8

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

Preview Lab → · Contrast checker → · Palette generator →

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