#7831B9#7831B9

#7831B9 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.4% C 0.202 H 303.3°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#7831B9
RGBrgb(120, 49, 185)
HSLhsl(271, 58%, 46%)
HSVhsv(271, 74%, 73%)
CMYKcmyk(35.1%, 73.5%, 0%, 27.5%)
CIE-LABlab(37.28, 55.31, -59.10)
CIE-LCHlch(37.28, 80.94, 313.10°)
OKLaboklab(48.41% 0.1107 -0.1684)
OKLCHoklch(48.41% 0.202 303.3)
XYZxyz(17.5990, 9.6925, 46.8332)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7831B9 #72B931
analogous
#3431B9 #7831B9 #B931B6
triadic
#7831B9 #B97831 #31B978
tetradic
#7831B9 #B93431 #72B931 #31B6B9
square
#7831B9 #B93431 #72B931 #31B6B9
split-complementary
#7831B9 #B6B931 #31B934
monochromatic
#391758 #592489 #7831B9 #9655D2 #B486DF

Accessibility & contrast

On white

7.15
#7831B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7831B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7831B9
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7831B9#FFFFFF#000000##FFFFFF
##7831B91.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#0057B6
Tritanopia (blue-blind)
#6B5372
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7831b9;
/* rgb */ color: rgb(120, 49, 185);
/* oklch */ color: oklch(48.4% 0.202 303.3);
Tailwind
colors: {
  custom: {
    50: '#a570cf',
    500: '#7831b9',
    950: '#000000',
  },
}
SCSS
$custom: #7831b9;
$custom-light: #a570cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7831b9",
  "rgb": {
    "r": 120,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 271.324,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.48412,
    "c": 0.2015,
    "h": 303.3
  },
  "luminance": 0.09692
}

Semantic roles & 50–950 ramp

primary
#7831B9
secondary
#A1C87D
accent
#E14690
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7831B9

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

Preview Lab → · Contrast checker → · Palette generator →

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