#7B4CB5#7B4CB5

#7B4CB5 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.0% C 0.162 H 301.7°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#7B4CB5
RGBrgb(123, 76, 181)
HSLhsl(267, 42%, 50%)
HSVhsv(267, 58%, 71%)
CMYKcmyk(32%, 58%, 0%, 29%)
CIE-LABlab(42.33, 41.39, -48.57)
CIE-LCHlch(42.33, 63.82, 310.43°)
OKLaboklab(52.04% 0.0848 -0.1374)
OKLCHoklch(52.04% 0.162 301.7)
XYZxyz(19.0914, 12.7160, 45.1557)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4CB5 #86B54C
analogous
#4C51B5 #7B4CB5 #AF4CB5
triadic
#7B4CB5 #B57B4C #4CB57B
tetradic
#7B4CB5 #B54C51 #86B54C #4CB5AF
square
#7B4CB5 #B54C51 #86B54C #4CB5AF
split-complementary
#7B4CB5 #B5AF4C #51B54C
monochromatic
#40275F #5E398B #7B4CB5 #9B77C7 #BBA3D9

Accessibility & contrast

On white

5.93
#7B4CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7B4CB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4CB5
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4CB5#FFFFFF#000000##FFFFFF
##7B4CB51.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C63B8
Deuteranopia (green-blind)
#3063B3
Tritanopia (blue-blind)
#706179
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7b4cb5;
/* rgb */ color: rgb(123, 76, 181);
/* oklch */ color: oklch(52.0% 0.162 301.7);
Tailwind
colors: {
  custom: {
    50: '#a580cc',
    500: '#7b4cb5',
    950: '#000000',
  },
}
SCSS
$custom: #7b4cb5;
$custom-light: #a580cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4cb5",
  "rgb": {
    "r": 123,
    "g": 76,
    "b": 181
  },
  "hsl": {
    "h": 266.857,
    "s": 41.502,
    "l": 50.392
  },
  "oklch": {
    "l": 0.52041,
    "c": 0.1615,
    "h": 301.7
  },
  "luminance": 0.12716
}

Semantic roles & 50–950 ramp

primary
#7B4CB5
secondary
#B1C697
accent
#D1569A
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7B4CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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