#7B4EAA#7B4EAA

#7B4EAA is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.7% C 0.145 H 304.4°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#7B4EAA
RGBrgb(123, 78, 170)
HSLhsl(269, 37%, 49%)
HSVhsv(269, 54%, 67%)
CMYKcmyk(27.6%, 54.1%, 0%, 33.3%)
CIE-LABlab(42.10, 37.50, -42.46)
CIE-LCHlch(42.10, 56.65, 311.45°)
OKLaboklab(51.65% 0.0818 -0.1195)
OKLCHoklch(51.65% 0.145 304.4)
XYZxyz(18.1469, 12.5621, 39.4911)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4EAA #7DAA4E
analogous
#4E4FAA #7B4EAA #A94EAA
triadic
#7B4EAA #AA7B4E #4EAA7B
tetradic
#7B4EAA #AA4E4F #7DAA4E #4EAAA9
square
#7B4EAA #AA4E4F #7DAA4E #4EAAA9
split-complementary
#7B4EAA #AAA94E #4FAA4E
monochromatic
#3E2856 #5D3B80 #7B4EAA #9A75C0 #B99FD3

Accessibility & contrast

On white

5.98
#7B4EAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7B4EAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4EAA
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4EAA#FFFFFF#000000##FFFFFF
##7B4EAA1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F62AD
Deuteranopia (green-blind)
#3D63A8
Tritanopia (blue-blind)
#735F74
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7b4eaa;
/* rgb */ color: rgb(123, 78, 170);
/* oklch */ color: oklch(51.7% 0.145 304.4);
Tailwind
colors: {
  custom: {
    50: '#a481c4',
    500: '#7b4eaa',
    950: '#000000',
  },
}
SCSS
$custom: #7b4eaa;
$custom-light: #a481c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4eaa",
  "rgb": {
    "r": 123,
    "g": 78,
    "b": 170
  },
  "hsl": {
    "h": 269.348,
    "s": 37.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.51652,
    "c": 0.14486,
    "h": 304.4
  },
  "luminance": 0.12562
}

Semantic roles & 50–950 ramp

primary
#7B4EAA
secondary
#AAC094
accent
#CD5B95
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #7B4EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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