#7B4CB6#7B4CB6

#7B4CB6 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.1% C 0.163 H 301.4°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#7B4CB6
RGBrgb(123, 76, 182)
HSLhsl(267, 42%, 51%)
HSVhsv(267, 58%, 71%)
CMYKcmyk(32.4%, 58.2%, 0%, 28.6%)
CIE-LABlab(42.40, 41.64, -49.06)
CIE-LCHlch(42.40, 64.35, 310.33°)
OKLaboklab(52.11% 0.0848 -0.1389)
OKLCHoklch(52.11% 0.163 301.4)
XYZxyz(19.1943, 12.7572, 45.6981)
Luminance0.1276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4CB6 #87B64C
analogous
#4C52B6 #7B4CB6 #B04CB6
triadic
#7B4CB6 #B67B4C #4CB67B
tetradic
#7B4CB6 #B64C52 #87B64C #4CB6B0
square
#7B4CB6 #B64C52 #87B64C #4CB6B0
split-complementary
#7B4CB6 #B6B04C #52B64C
monochromatic
#412760 #5E398C #7B4CB6 #9B77C8 #BBA3D9

Accessibility & contrast

On white

5.91
#7B4CB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#7B4CB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4CB6
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4CB6#FFFFFF#000000##FFFFFF
##7B4CB61.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A63B9
Deuteranopia (green-blind)
#2F64B4
Tritanopia (blue-blind)
#6F617A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7b4cb6;
/* rgb */ color: rgb(123, 76, 182);
/* oklch */ color: oklch(52.1% 0.163 301.4);
Tailwind
colors: {
  custom: {
    50: '#a580cc',
    500: '#7b4cb6',
    950: '#000000',
  },
}
SCSS
$custom: #7b4cb6;
$custom-light: #a580cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4cb6",
  "rgb": {
    "r": 123,
    "g": 76,
    "b": 182
  },
  "hsl": {
    "h": 266.604,
    "s": 42.063,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52107,
    "c": 0.16272,
    "h": 301.4
  },
  "luminance": 0.12757
}

Semantic roles & 50–950 ramp

primary
#7B4CB6
secondary
#B2C697
accent
#D2569B
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7B4CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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