#7831BC#7831BC

#7831BC is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.6% C 0.205 H 302.6°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#7831BC
RGBrgb(120, 49, 188)
HSLhsl(271, 59%, 46%)
HSVhsv(271, 74%, 74%)
CMYKcmyk(36.2%, 73.9%, 0%, 26.3%)
CIE-LABlab(37.52, 56.02, -60.49)
CIE-LCHlch(37.52, 82.44, 312.80°)
OKLaboklab(48.65% 0.1101 -0.1724)
OKLCHoklch(48.65% 0.205 302.6)
XYZxyz(17.9190, 9.8205, 48.5187)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7831BC #75BC31
analogous
#3231BC #7831BC #BC31BB
triadic
#7831BC #BC7831 #31BC78
tetradic
#7831BC #BC3231 #75BC31 #31BBBC
square
#7831BC #BC3231 #75BC31 #31BBBC
split-complementary
#7831BC #BBBC31 #31BC32
monochromatic
#3A185B #59248B #7831BC #9657D3 #B588E0

Accessibility & contrast

On white

7.08
#7831BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7831BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7831BC
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7831BC#FFFFFF#000000##FFFFFF
##7831BC1.007.082.967.08
#FFFFFF7.081.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#0058B9
Tritanopia (blue-blind)
#6A5474
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7831bc;
/* rgb */ color: rgb(120, 49, 188);
/* oklch */ color: oklch(48.6% 0.205 302.6);
Tailwind
colors: {
  custom: {
    50: '#a570d1',
    500: '#7831bc',
    950: '#000000',
  },
}
SCSS
$custom: #7831bc;
$custom-light: #a570d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7831bc",
  "rgb": {
    "r": 120,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 270.647,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4865,
    "c": 0.20459,
    "h": 302.6
  },
  "luminance": 0.09821
}

Semantic roles & 50–950 ramp

primary
#7831BC
secondary
#A4CA7F
accent
#E24692
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7831BC

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

Preview Lab → · Contrast checker → · Palette generator →

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