#7831B3#7831B3

#7831B3 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.9% C 0.195 H 304.9°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#7831B3
RGBrgb(120, 49, 179)
HSLhsl(273, 57%, 45%)
HSVhsv(273, 73%, 70%)
CMYKcmyk(33%, 72.6%, 0%, 29.8%)
CIE-LABlab(36.83, 53.90, -56.30)
CIE-LCHlch(36.83, 77.94, 313.75°)
OKLaboklab(47.94% 0.1119 -0.1601)
OKLCHoklch(47.94% 0.195 304.9)
XYZxyz(16.9789, 9.4445, 43.5676)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7831B3 #6CB331
analogous
#3731B3 #7831B3 #B331AD
triadic
#7831B3 #B37831 #31B378
tetradic
#7831B3 #B33731 #6CB331 #31ADB3
square
#7831B3 #B33731 #6CB331 #31ADB3
split-complementary
#7831B3 #ADB331 #31B337
monochromatic
#381753 #582483 #7831B3 #9652D0 #B382DD

Accessibility & contrast

On white

7.27
#7831B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7831B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7831B3
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7831B3#FFFFFF#000000##FFFFFF
##7831B31.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0057B0
Tritanopia (blue-blind)
#6D506F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7831b3;
/* rgb */ color: rgb(120, 49, 179);
/* oklch */ color: oklch(47.9% 0.195 304.9);
Tailwind
colors: {
  custom: {
    50: '#a470cb',
    500: '#7831b3',
    950: '#000000',
  },
}
SCSS
$custom: #7831b3;
$custom-light: #a470cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7831b3",
  "rgb": {
    "r": 120,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 272.769,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47944,
    "c": 0.19532,
    "h": 304.9
  },
  "luminance": 0.09444
}

Semantic roles & 50–950 ramp

primary
#7831B3
secondary
#9CC67A
accent
#E0488D
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7831B3

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

Preview Lab → · Contrast checker → · Palette generator →

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