#7831AF#7831AF

#7831AF is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.6% C 0.191 H 306.1°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#7831AF
RGBrgb(120, 49, 175)
HSLhsl(274, 56%, 44%)
HSVhsv(274, 72%, 69%)
CMYKcmyk(31.4%, 72%, 0%, 31.4%)
CIE-LABlab(36.53, 52.96, -54.41)
CIE-LCHlch(36.53, 75.93, 314.23°)
OKLaboklab(47.64% 0.1125 -0.1546)
OKLCHoklch(47.64% 0.191 306.1)
XYZxyz(16.5802, 9.2850, 41.4678)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7831AF #68AF31
analogous
#3931AF #7831AF #AF31A7
triadic
#7831AF #AF7831 #31AF78
tetradic
#7831AF #AF3931 #68AF31 #31A7AF
square
#7831AF #AF3931 #68AF31 #31A7AF
split-complementary
#7831AF #A7AF31 #31AF39
monochromatic
#36164F #57247F #7831AF #974FCE #B37FDB

Accessibility & contrast

On white

7.35
#7831AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7831AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7831AF
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7831AF#FFFFFF#000000##FFFFFF
##7831AF1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#0056AC
Tritanopia (blue-blind)
#6E4E6D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7831af;
/* rgb */ color: rgb(120, 49, 175);
/* oklch */ color: oklch(47.6% 0.191 306.1);
Tailwind
colors: {
  custom: {
    50: '#a46fc8',
    500: '#7831af',
    950: '#000000',
  },
}
SCSS
$custom: #7831af;
$custom-light: #a46fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#7831af",
  "rgb": {
    "r": 120,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 273.81,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47638,
    "c": 0.19119,
    "h": 306.1
  },
  "luminance": 0.09285
}

Semantic roles & 50–950 ramp

primary
#7831AF
secondary
#99C478
accent
#E0488A
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7831AF

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

Preview Lab → · Contrast checker → · Palette generator →

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