#7B4D9D#7B4D9D

#7B4D9D is a mid, vivid violet. Relative luminance 0.120; OKLCH L 50.7% C 0.130 H 309.0°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#7B4D9D
RGBrgb(123, 77, 157)
HSLhsl(275, 34%, 46%)
HSVhsv(275, 51%, 62%)
CMYKcmyk(21.7%, 51%, 0%, 38.4%)
CIE-LABlab(41.14, 34.90, -36.24)
CIE-LCHlch(41.14, 50.31, 313.92°)
OKLaboklab(50.71% 0.0821 -0.1014)
OKLCHoklch(50.71% 0.13 309)
XYZxyz(16.9069, 11.9533, 33.3083)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4D9D #6F9D4D
analogous
#534D9D #7B4D9D #9D4D97
triadic
#7B4D9D #9D7B4D #4D9D7B
tetradic
#7B4D9D #9D534D #6F9D4D #4D979D
square
#7B4D9D #9D534D #6F9D4D #4D979D
split-complementary
#7B4D9D #979D4D #4D9D53
monochromatic
#3B254B #5B3974 #7B4D9D #996FB8 #B698CC

Accessibility & contrast

On white

6.19
#7B4D9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#7B4D9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4D9D
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4D9D#FFFFFF#000000##FFFFFF
##7B4D9D1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385FA0
Deuteranopia (green-blind)
#45629B
Tritanopia (blue-blind)
#765A6E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7b4d9d;
/* rgb */ color: rgb(123, 77, 157);
/* oklch */ color: oklch(50.7% 0.130 309.0);
Tailwind
colors: {
  custom: {
    50: '#a380ba',
    500: '#7b4d9d',
    950: '#000000',
  },
}
SCSS
$custom: #7b4d9d;
$custom-light: #a380ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4d9d",
  "rgb": {
    "r": 123,
    "g": 77,
    "b": 157
  },
  "hsl": {
    "h": 274.5,
    "s": 34.188,
    "l": 45.882
  },
  "oklch": {
    "l": 0.50708,
    "c": 0.13046,
    "h": 309
  },
  "luminance": 0.11953
}

Semantic roles & 50–950 ramp

primary
#7B4D9D
secondary
#A0B98D
accent
#CA5E8C
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7B4D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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