#7831AE#7831AE

#7831AE is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.6% C 0.190 H 306.3°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#7831AE
RGBrgb(120, 49, 174)
HSLhsl(274, 56%, 44%)
HSVhsv(274, 72%, 68%)
CMYKcmyk(31%, 71.8%, 0%, 31.8%)
CIE-LABlab(36.45, 52.73, -53.93)
CIE-LCHlch(36.45, 75.43, 314.36°)
OKLaboklab(47.56% 0.1127 -0.1532)
OKLCHoklch(47.56% 0.19 306.3)
XYZxyz(16.4824, 9.2459, 40.9525)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7831AE #67AE31
analogous
#3931AE #7831AE #AE31A5
triadic
#7831AE #AE7831 #31AE78
tetradic
#7831AE #AE3931 #67AE31 #31A5AE
square
#7831AE #AE3931 #67AE31 #31A5AE
split-complementary
#7831AE #A5AE31 #31AE39
monochromatic
#36164E #57247E #7831AE #974FCD #B37FDB

Accessibility & contrast

On white

7.37
#7831AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#7831AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7831AE
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7831AE#FFFFFF#000000##FFFFFF
##7831AE1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B2
Deuteranopia (green-blind)
#0056AB
Tritanopia (blue-blind)
#6F4E6C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7831ae;
/* rgb */ color: rgb(120, 49, 174);
/* oklch */ color: oklch(47.6% 0.190 306.3);
Tailwind
colors: {
  custom: {
    50: '#a46fc7',
    500: '#7831ae',
    950: '#000000',
  },
}
SCSS
$custom: #7831ae;
$custom-light: #a46fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7831ae",
  "rgb": {
    "r": 120,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 274.08,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47562,
    "c": 0.19016,
    "h": 306.3
  },
  "luminance": 0.09246
}

Semantic roles & 50–950 ramp

primary
#7831AE
secondary
#98C477
accent
#DF488A
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7831AE

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

Preview Lab → · Contrast checker → · Palette generator →

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