#7A3AB8#7A3AB8

#7A3AB8 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.6% C 0.190 H 303.4°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#7A3AB8
RGBrgb(122, 58, 184)
HSLhsl(270, 52%, 47%)
HSVhsv(270, 68%, 72%)
CMYKcmyk(33.7%, 68.5%, 0%, 27.8%)
CIE-LABlab(38.94, 51.32, -55.81)
CIE-LCHlch(38.94, 75.82, 312.60°)
OKLaboklab(49.62% 0.1046 -0.1587)
OKLCHoklch(49.62% 0.19 303.4)
XYZxyz(18.1888, 10.6244, 46.4306)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A3AB8 #78B83A
analogous
#3B3AB8 #7A3AB8 #B83AB7
triadic
#7A3AB8 #B87A3A #3AB87A
tetradic
#7A3AB8 #B83B3A #78B83A #3AB7B8
square
#7A3AB8 #B83B3A #78B83A #3AB7B8
split-complementary
#7A3AB8 #B7B83A #3AB83B
monochromatic
#3C1D5B #5B2B89 #7A3AB8 #9862CD #B790DC

Accessibility & contrast

On white

6.72
#7A3AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7A3AB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A3AB8
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A3AB8#FFFFFF#000000##FFFFFF
##7A3AB81.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABC
Deuteranopia (green-blind)
#005BB5
Tritanopia (blue-blind)
#6E5774
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7a3ab8;
/* rgb */ color: rgb(122, 58, 184);
/* oklch */ color: oklch(49.6% 0.190 303.4);
Tailwind
colors: {
  custom: {
    50: '#a575ce',
    500: '#7a3ab8',
    950: '#000000',
  },
}
SCSS
$custom: #7a3ab8;
$custom-light: #a575ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7a3ab8",
  "rgb": {
    "r": 122,
    "g": 58,
    "b": 184
  },
  "hsl": {
    "h": 270.476,
    "s": 52.066,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49622,
    "c": 0.19002,
    "h": 303.4
  },
  "luminance": 0.10624
}

Semantic roles & 50–950 ramp

primary
#7A3AB8
secondary
#A6C787
accent
#DC4C93
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7A3AB8

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

Preview Lab → · Contrast checker → · Palette generator →

#7A3AB8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva