#7B4BB9#7B4BB9

#7B4BB9 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.2% C 0.168 H 300.8°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#7B4BB9
RGBrgb(123, 75, 185)
HSLhsl(266, 44%, 51%)
HSVhsv(266, 59%, 73%)
CMYKcmyk(33.5%, 59.5%, 0%, 27.5%)
CIE-LABlab(42.38, 42.96, -50.85)
CIE-LCHlch(42.38, 66.57, 310.19°)
OKLaboklab(52.16% 0.0861 -0.1441)
OKLCHoklch(52.16% 0.168 300.8)
XYZxyz(19.4393, 12.7458, 47.3256)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4BB9 #89B94B
analogous
#4B52B9 #7B4BB9 #B24BB9
triadic
#7B4BB9 #B97B4B #4BB97B
tetradic
#7B4BB9 #B94B52 #89B94B #4BB9B2
square
#7B4BB9 #B94B52 #89B94B #4BB9B2
split-complementary
#7B4BB9 #B9B24B #52B94B
monochromatic
#412763 #5E388F #7B4BB9 #9B77CA #BCA3DB

Accessibility & contrast

On white

5.92
#7B4BB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7B4BB9
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4BB9#FFFFFF#000000##FFFFFF
##7B4BB91.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F64BD
Deuteranopia (green-blind)
#2A63B7
Tritanopia (blue-blind)
#6E627B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7b4bb9;
/* rgb */ color: rgb(123, 75, 185);
/* oklch */ color: oklch(52.2% 0.168 300.8);
Tailwind
colors: {
  custom: {
    50: '#a57fcf',
    500: '#7b4bb9',
    950: '#000000',
  },
}
SCSS
$custom: #7b4bb9;
$custom-light: #a57fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4bb9",
  "rgb": {
    "r": 123,
    "g": 75,
    "b": 185
  },
  "hsl": {
    "h": 266.182,
    "s": 44,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52156,
    "c": 0.16784,
    "h": 300.8
  },
  "luminance": 0.12746
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B4BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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