#7B4AA2#7B4AA2

#7B4AA2 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.5% C 0.142 H 307.8°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#7B4AA2
RGBrgb(123, 74, 162)
HSLhsl(273, 37%, 46%)
HSVhsv(273, 54%, 64%)
CMYKcmyk(24.1%, 54.3%, 0%, 36.5%)
CIE-LABlab(40.76, 37.80, -39.83)
CIE-LCHlch(40.76, 54.91, 313.50°)
OKLaboklab(50.52% 0.0868 -0.1118)
OKLCHoklch(50.52% 0.142 307.8)
XYZxyz(17.1374, 11.7174, 35.5343)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4AA2 #71A24A
analogous
#4F4AA2 #7B4AA2 #A24A9D
triadic
#7B4AA2 #A27B4A #4AA27B
tetradic
#7B4AA2 #A24F4A #71A24A #4A9DA2
square
#7B4AA2 #A24F4A #71A24A #4A9DA2
split-complementary
#7B4AA2 #9DA24A #4AA24F
monochromatic
#3B244E #5B3778 #7B4AA2 #996DBC #B697CF

Accessibility & contrast

On white

6.28
#7B4AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7B4AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4AA2
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4AA2#FFFFFF#000000##FFFFFF
##7B4AA21.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5EA5
Deuteranopia (green-blind)
#3F61A0
Tritanopia (blue-blind)
#755A6F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7b4aa2;
/* rgb */ color: rgb(123, 74, 162);
/* oklch */ color: oklch(50.5% 0.142 307.8);
Tailwind
colors: {
  custom: {
    50: '#a37ebe',
    500: '#7b4aa2',
    950: '#000000',
  },
}
SCSS
$custom: #7b4aa2;
$custom-light: #a37ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4aa2",
  "rgb": {
    "r": 123,
    "g": 74,
    "b": 162
  },
  "hsl": {
    "h": 273.409,
    "s": 37.288,
    "l": 46.275
  },
  "oklch": {
    "l": 0.50519,
    "c": 0.14157,
    "h": 307.8
  },
  "luminance": 0.11717
}

Semantic roles & 50–950 ramp

primary
#7B4AA2
secondary
#A1BC8C
accent
#CD5B8D
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7B4AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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