#7831A2#7831A2

#7831A2 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.7% C 0.178 H 310.0°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#7831A2
RGBrgb(120, 49, 162)
HSLhsl(278, 54%, 41%)
HSVhsv(278, 70%, 64%)
CMYKcmyk(25.9%, 69.8%, 0%, 36.5%)
CIE-LABlab(35.59, 49.99, -48.13)
CIE-LCHlch(35.59, 69.39, 316.08°)
OKLaboklab(46.68% 0.1144 -0.1361)
OKLCHoklch(46.68% 0.178 310)
XYZxyz(15.3644, 8.7986, 35.0643)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7831A2 #5BA231
analogous
#4031A2 #7831A2 #A23194
triadic
#7831A2 #A27831 #31A278
tetradic
#7831A2 #A24031 #5BA231 #3194A2
square
#7831A2 #A24031 #5BA231 #3194A2
split-complementary
#7831A2 #94A231 #31A240
monochromatic
#321544 #552373 #7831A2 #9848C8 #B377D6

Accessibility & contrast

On white

7.61
#7831A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7831A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7831A2
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7831A2#FFFFFF#000000##FFFFFF
##7831A21.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#1E55A0
Tritanopia (blue-blind)
#724966
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7831a2;
/* rgb */ color: rgb(120, 49, 162);
/* oklch */ color: oklch(46.7% 0.178 310.0);
Tailwind
colors: {
  custom: {
    50: '#a36fbe',
    500: '#7831a2',
    950: '#000000',
  },
}
SCSS
$custom: #7831a2;
$custom-light: #a36fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7831a2",
  "rgb": {
    "r": 120,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 277.699,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46678,
    "c": 0.17778,
    "h": 310
  },
  "luminance": 0.08798
}

Semantic roles & 50–950 ramp

primary
#7831A2
secondary
#8DBE71
accent
#DD4B81
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0812
muted
#7F7B81

Preview Lab

Preview with #7831A2

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

Preview Lab → · Contrast checker → · Palette generator →

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