#7831B7#7831B7

#7831B7 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.3% C 0.199 H 303.9°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#7831B7
RGBrgb(120, 49, 183)
HSLhsl(272, 58%, 45%)
HSVhsv(272, 73%, 72%)
CMYKcmyk(34.4%, 73.2%, 0%, 28.2%)
CIE-LABlab(37.13, 54.84, -58.17)
CIE-LCHlch(37.13, 79.94, 313.31°)
OKLaboklab(48.26% 0.1111 -0.1656)
OKLCHoklch(48.26% 0.199 303.9)
XYZxyz(17.3893, 9.6086, 45.7291)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7831B7 #70B731
analogous
#3531B7 #7831B7 #B731B3
triadic
#7831B7 #B77831 #31B778
tetradic
#7831B7 #B73531 #70B731 #31B3B7
square
#7831B7 #B73531 #70B731 #31B3B7
split-complementary
#7831B7 #B3B731 #31B735
monochromatic
#391756 #582487 #7831B7 #9654D1 #B484DE

Accessibility & contrast

On white

7.19
#7831B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7831B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7831B7
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7831B7#FFFFFF#000000##FFFFFF
##7831B71.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#0057B4
Tritanopia (blue-blind)
#6C5271
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7831b7;
/* rgb */ color: rgb(120, 49, 183);
/* oklch */ color: oklch(48.3% 0.199 303.9);
Tailwind
colors: {
  custom: {
    50: '#a470cd',
    500: '#7831b7',
    950: '#000000',
  },
}
SCSS
$custom: #7831b7;
$custom-light: #a470cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7831b7",
  "rgb": {
    "r": 120,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 271.791,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.48255,
    "c": 0.19943,
    "h": 303.9
  },
  "luminance": 0.09609
}

Semantic roles & 50–950 ramp

primary
#7831B7
secondary
#A0C87C
accent
#E1478F
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7831B7

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

Preview Lab → · Contrast checker → · Palette generator →

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