#7B4CB8#7B4CB8

#7B4CB8 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.2% C 0.165 H 300.9°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#7B4CB8
RGBrgb(123, 76, 184)
HSLhsl(266, 43%, 51%)
HSVhsv(266, 59%, 72%)
CMYKcmyk(33.2%, 58.7%, 0%, 27.8%)
CIE-LABlab(42.52, 42.15, -50.03)
CIE-LCHlch(42.52, 65.42, 310.12°)
OKLaboklab(52.24% 0.0848 -0.1417)
OKLCHoklch(52.24% 0.165 300.9)
XYZxyz(19.4025, 12.8404, 46.7944)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4CB8 #89B84C
analogous
#4C53B8 #7B4CB8 #B14CB8
triadic
#7B4CB8 #B87B4C #4CB87B
tetradic
#7B4CB8 #B84C53 #89B84C #4CB8B1
square
#7B4CB8 #B84C53 #89B84C #4CB8B1
split-complementary
#7B4CB8 #B8B14C #53B84C
monochromatic
#412763 #5E388E #7B4CB8 #9B78C9 #BCA4DB

Accessibility & contrast

On white

5.89
#7B4CB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7B4CB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4CB8
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4CB8#FFFFFF#000000##FFFFFF
##7B4CB81.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1664BC
Deuteranopia (green-blind)
#2C64B6
Tritanopia (blue-blind)
#6F627B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7b4cb8;
/* rgb */ color: rgb(123, 76, 184);
/* oklch */ color: oklch(52.2% 0.165 300.9);
Tailwind
colors: {
  custom: {
    50: '#a580ce',
    500: '#7b4cb8',
    950: '#000000',
  },
}
SCSS
$custom: #7b4cb8;
$custom-light: #a580ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4cb8",
  "rgb": {
    "r": 123,
    "g": 76,
    "b": 184
  },
  "hsl": {
    "h": 266.111,
    "s": 43.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.5224,
    "c": 0.16515,
    "h": 300.9
  },
  "luminance": 0.12841
}

Semantic roles & 50–950 ramp

primary
#7B4CB8
secondary
#B3C898
accent
#D3559C
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7B4CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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