#7B4CB1#7B4CB1

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

Color values

HEX#7B4CB1
RGBrgb(123, 76, 177)
HSLhsl(268, 40%, 50%)
HSVhsv(268, 57%, 69%)
CMYKcmyk(30.5%, 57.1%, 0%, 30.6%)
CIE-LABlab(42.08, 40.38, -46.62)
CIE-LCHlch(42.08, 61.67, 310.90°)
OKLaboklab(51.78% 0.0848 -0.1317)
OKLCHoklch(51.78% 0.157 302.8)
XYZxyz(18.6868, 12.5542, 43.0252)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4CB1 #82B14C
analogous
#4C4FB1 #7B4CB1 #AE4CB1
triadic
#7B4CB1 #B17B4C #4CB17B
tetradic
#7B4CB1 #B14C4F #82B14C #4CB1AE
square
#7B4CB1 #B14C4F #82B14C #4CB1AE
split-complementary
#7B4CB1 #B1AE4C #4FB14C
monochromatic
#3F275B #5D3A86 #7B4CB1 #9A76C4 #BAA1D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B4CB1#FFFFFF#000000##FFFFFF
##7B4CB11.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)
#2262B4
Deuteranopia (green-blind)
#3463AF
Tritanopia (blue-blind)
#716077
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7b4cb1;
/* rgb */ color: rgb(123, 76, 177);
/* oklch */ color: oklch(51.8% 0.157 302.8);
Tailwind
colors: {
  custom: {
    50: '#a480c9',
    500: '#7b4cb1',
    950: '#000000',
  },
}
SCSS
$custom: #7b4cb1;
$custom-light: #a480c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4cb1",
  "rgb": {
    "r": 123,
    "g": 76,
    "b": 177
  },
  "hsl": {
    "h": 267.921,
    "s": 39.921,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51779,
    "c": 0.15663,
    "h": 302.8
  },
  "luminance": 0.12554
}

Semantic roles & 50–950 ramp

primary
#7B4CB1
secondary
#AEC395
accent
#D05898
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7B4CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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