#7831AC#7831AC

#7831AC is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.4% C 0.188 H 306.9°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#7831AC
RGBrgb(120, 49, 172)
HSLhsl(275, 56%, 43%)
HSVhsv(275, 72%, 67%)
CMYKcmyk(30.2%, 71.5%, 0%, 32.5%)
CIE-LABlab(36.31, 52.27, -52.98)
CIE-LCHlch(36.31, 74.42, 314.62°)
OKLaboklab(47.41% 0.113 -0.1504)
OKLCHoklch(47.41% 0.188 306.9)
XYZxyz(16.2888, 9.1684, 39.9333)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7831AC #65AC31
analogous
#3A31AC #7831AC #AC31A2
triadic
#7831AC #AC7831 #31AC78
tetradic
#7831AC #AC3A31 #65AC31 #31A2AC
square
#7831AC #AC3A31 #65AC31 #31A2AC
split-complementary
#7831AC #A2AC31 #31AC3A
monochromatic
#36164D #57237C #7831AC #974ECC #B37DDA

Accessibility & contrast

On white

7.41
#7831AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7831AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7831AC
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7831AC#FFFFFF#000000##FFFFFF
##7831AC1.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B0
Deuteranopia (green-blind)
#0556A9
Tritanopia (blue-blind)
#6F4D6B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7831ac;
/* rgb */ color: rgb(120, 49, 172);
/* oklch */ color: oklch(47.4% 0.188 306.9);
Tailwind
colors: {
  custom: {
    50: '#a46fc5',
    500: '#7831ac',
    950: '#000000',
  },
}
SCSS
$custom: #7831ac;
$custom-light: #a46fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7831ac",
  "rgb": {
    "r": 120,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 274.634,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47412,
    "c": 0.18809,
    "h": 306.9
  },
  "luminance": 0.09168
}

Semantic roles & 50–950 ramp

primary
#7831AC
secondary
#96C376
accent
#DF4988
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7831AC

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

Preview Lab → · Contrast checker → · Palette generator →

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