#7831C4#7831C4

#7831C4 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.3% C 0.213 H 300.6°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#7831C4
RGBrgb(120, 49, 196)
HSLhsl(269, 60%, 48%)
HSVhsv(269, 75%, 77%)
CMYKcmyk(38.8%, 75%, 0%, 23.1%)
CIE-LABlab(38.15, 57.93, -64.14)
CIE-LCHlch(38.15, 86.43, 312.09°)
OKLaboklab(49.3% 0.1083 -0.1832)
OKLCHoklch(49.3% 0.213 300.6)
XYZxyz(18.8054, 10.1751, 53.1871)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7831C4 #7DC431
analogous
#3133C4 #7831C4 #C231C4
triadic
#7831C4 #C47831 #31C478
tetradic
#7831C4 #C43133 #7DC431 #31C4C2
square
#7831C4 #C43133 #7DC431 #31C4C2
split-complementary
#7831C4 #C4C231 #33C431
monochromatic
#3C1962 #5A2593 #7831C4 #975CD6 #B68DE2

Accessibility & contrast

On white

6.92
#7831C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7831C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7831C4
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7831C4#FFFFFF#000000##FFFFFF
##7831C41.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C8
Deuteranopia (green-blind)
#0059C1
Tritanopia (blue-blind)
#675779
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7831c4;
/* rgb */ color: rgb(120, 49, 196);
/* oklch */ color: oklch(49.3% 0.213 300.6);
Tailwind
colors: {
  custom: {
    50: '#a670d7',
    500: '#7831c4',
    950: '#000000',
  },
}
SCSS
$custom: #7831c4;
$custom-light: #a670d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7831c4",
  "rgb": {
    "r": 120,
    "g": 49,
    "b": 196
  },
  "hsl": {
    "h": 268.98,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49297,
    "c": 0.2128,
    "h": 300.6
  },
  "luminance": 0.10175
}

Semantic roles & 50–950 ramp

primary
#7831C4
secondary
#AACD84
accent
#E34597
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7831C4

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

Preview Lab → · Contrast checker → · Palette generator →

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