#7831C5#7831C5

#7831C5 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.4% C 0.214 H 300.4°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#7831C5
RGBrgb(120, 49, 197)
HSLhsl(269, 60%, 48%)
HSVhsv(269, 75%, 77%)
CMYKcmyk(39.1%, 75.1%, 0%, 22.7%)
CIE-LABlab(38.24, 58.17, -64.59)
CIE-LCHlch(38.24, 86.92, 312.00°)
OKLaboklab(49.38% 0.1081 -0.1845)
OKLCHoklch(49.38% 0.214 300.4)
XYZxyz(18.9196, 10.2207, 53.7885)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7831C5 #7EC531
analogous
#3134C5 #7831C5 #C231C5
triadic
#7831C5 #C57831 #31C578
tetradic
#7831C5 #C53134 #7EC531 #31C5C2
square
#7831C5 #C53134 #7EC531 #31C5C2
split-complementary
#7831C5 #C5C231 #34C531
monochromatic
#3C1963 #5A2594 #7831C5 #975DD7 #B68EE3

Accessibility & contrast

On white

6.90
#7831C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#7831C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7831C5
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7831C5#FFFFFF#000000##FFFFFF
##7831C51.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C9
Deuteranopia (green-blind)
#0059C2
Tritanopia (blue-blind)
#665779
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7831c5;
/* rgb */ color: rgb(120, 49, 197);
/* oklch */ color: oklch(49.4% 0.214 300.4);
Tailwind
colors: {
  custom: {
    50: '#a670d8',
    500: '#7831c5',
    950: '#000000',
  },
}
SCSS
$custom: #7831c5;
$custom-light: #a670d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7831c5",
  "rgb": {
    "r": 120,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 268.784,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.49379,
    "c": 0.21383,
    "h": 300.4
  },
  "luminance": 0.10221
}

Semantic roles & 50–950 ramp

primary
#7831C5
secondary
#AACD85
accent
#E34497
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7831C5

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

Preview Lab → · Contrast checker → · Palette generator →

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