#7B4FA2#7B4FA2

#7B4FA2 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.3% C 0.133 H 306.8°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#7B4FA2
RGBrgb(123, 79, 162)
HSLhsl(272, 34%, 47%)
HSVhsv(272, 51%, 64%)
CMYKcmyk(24.1%, 51.2%, 0%, 36.5%)
CIE-LABlab(41.86, 34.95, -38.08)
CIE-LCHlch(41.86, 51.69, 312.55°)
OKLaboklab(51.33% 0.0798 -0.1067)
OKLCHoklch(51.33% 0.133 306.8)
XYZxyz(17.4846, 12.4117, 35.6500)
Luminance0.1241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4FA2 #76A24F
analogous
#514FA2 #7B4FA2 #A24FA0
triadic
#7B4FA2 #A27B4F #4FA27B
tetradic
#7B4FA2 #A2514F #76A24F #4FA0A2
square
#7B4FA2 #A2514F #76A24F #4FA0A2
split-complementary
#7B4FA2 #A0A24F #4FA251
monochromatic
#3D2750 #5C3B79 #7B4FA2 #9973BB #B79CCF

Accessibility & contrast

On white

6.03
#7B4FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7B4FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4FA2
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4FA2#FFFFFF#000000##FFFFFF
##7B4FA21.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3761A5
Deuteranopia (green-blind)
#4463A0
Tritanopia (blue-blind)
#755D71
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7b4fa2;
/* rgb */ color: rgb(123, 79, 162);
/* oklch */ color: oklch(51.3% 0.133 306.8);
Tailwind
colors: {
  custom: {
    50: '#a382be',
    500: '#7b4fa2',
    950: '#000000',
  },
}
SCSS
$custom: #7b4fa2;
$custom-light: #a382be;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4fa2",
  "rgb": {
    "r": 123,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 271.807,
    "s": 34.44,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51333,
    "c": 0.13327,
    "h": 306.8
  },
  "luminance": 0.12412
}

Semantic roles & 50–950 ramp

primary
#7B4FA2
secondary
#A5BC91
accent
#CB5D91
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7B4FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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