#7831B8#7831B8

#7831B8 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.3% C 0.200 H 303.6°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#7831B8
RGBrgb(120, 49, 184)
HSLhsl(272, 58%, 46%)
HSVhsv(272, 73%, 72%)
CMYKcmyk(34.8%, 73.4%, 0%, 27.8%)
CIE-LABlab(37.21, 55.07, -58.64)
CIE-LCHlch(37.21, 80.44, 313.20°)
OKLaboklab(48.33% 0.1109 -0.167)
OKLCHoklch(48.33% 0.2 303.6)
XYZxyz(17.4938, 9.6504, 46.2792)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7831B8 #71B831
analogous
#3531B8 #7831B8 #B831B4
triadic
#7831B8 #B87831 #31B878
tetradic
#7831B8 #B83531 #71B831 #31B4B8
square
#7831B8 #B83531 #71B831 #31B4B8
split-complementary
#7831B8 #B4B831 #31B835
monochromatic
#391757 #582488 #7831B8 #9655D2 #B485DE

Accessibility & contrast

On white

7.17
#7831B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7831B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7831B8
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7831B8#FFFFFF#000000##FFFFFF
##7831B81.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#0057B5
Tritanopia (blue-blind)
#6B5272
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7831b8;
/* rgb */ color: rgb(120, 49, 184);
/* oklch */ color: oklch(48.3% 0.200 303.6);
Tailwind
colors: {
  custom: {
    50: '#a470ce',
    500: '#7831b8',
    950: '#000000',
  },
}
SCSS
$custom: #7831b8;
$custom-light: #a470ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7831b8",
  "rgb": {
    "r": 120,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 271.556,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.48334,
    "c": 0.20047,
    "h": 303.6
  },
  "luminance": 0.0965
}

Semantic roles & 50–950 ramp

primary
#7831B8
secondary
#A0C87D
accent
#E14790
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7831B8

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

Preview Lab → · Contrast checker → · Palette generator →

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