#7831C7#7831C7

#7831C7 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.5% C 0.216 H 299.9°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#7831C7
RGBrgb(120, 49, 199)
HSLhsl(268, 60%, 49%)
HSVhsv(268, 75%, 78%)
CMYKcmyk(39.7%, 75.4%, 0%, 22%)
CIE-LABlab(38.40, 58.65, -65.49)
CIE-LCHlch(38.40, 87.91, 311.84°)
OKLaboklab(49.54% 0.1076 -0.1871)
OKLCHoklch(49.54% 0.216 299.9)
XYZxyz(19.1503, 10.3130, 55.0034)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7831C7 #80C731
analogous
#3135C7 #7831C7 #C331C7
triadic
#7831C7 #C77831 #31C778
tetradic
#7831C7 #C73135 #80C731 #31C7C3
square
#7831C7 #C73135 #80C731 #31C7C3
split-complementary
#7831C7 #C7C331 #35C731
monochromatic
#3D1965 #5A2596 #7831C7 #975ED7 #B78FE3

Accessibility & contrast

On white

6.86
#7831C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7831C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7831C7
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7831C7#FFFFFF#000000##FFFFFF
##7831C71.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACB
Deuteranopia (green-blind)
#0059C4
Tritanopia (blue-blind)
#65587A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7831c7;
/* rgb */ color: rgb(120, 49, 199);
/* oklch */ color: oklch(49.5% 0.216 299.9);
Tailwind
colors: {
  custom: {
    50: '#a670d9',
    500: '#7831c7',
    950: '#000000',
  },
}
SCSS
$custom: #7831c7;
$custom-light: #a670d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7831c7",
  "rgb": {
    "r": 120,
    "g": 49,
    "b": 199
  },
  "hsl": {
    "h": 268.4,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.49543,
    "c": 0.21587,
    "h": 299.9
  },
  "luminance": 0.10313
}

Semantic roles & 50–950 ramp

primary
#7831C7
secondary
#ACCE86
accent
#E44498
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7831C7

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

Preview Lab → · Contrast checker → · Palette generator →

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