#7B4CB2#7B4CB2

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

Color values

HEX#7B4CB2
RGBrgb(123, 76, 178)
HSLhsl(268, 40%, 50%)
HSVhsv(268, 57%, 70%)
CMYKcmyk(30.9%, 57.3%, 0%, 30.2%)
CIE-LABlab(42.15, 40.63, -47.11)
CIE-LCHlch(42.15, 62.21, 310.78°)
OKLaboklab(51.84% 0.0848 -0.1331)
OKLCHoklch(51.84% 0.158 302.5)
XYZxyz(18.7869, 12.5942, 43.5520)
Luminance0.1259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4CB2 #83B24C
analogous
#4C50B2 #7B4CB2 #AE4CB2
triadic
#7B4CB2 #B27B4C #4CB27B
tetradic
#7B4CB2 #B24C50 #83B24C #4CB2AE
square
#7B4CB2 #B24C50 #83B24C #4CB2AE
split-complementary
#7B4CB2 #B2AE4C #50B24C
monochromatic
#40275C #5D3A87 #7B4CB2 #9B76C5 #BAA1D7

Accessibility & contrast

On white

5.97
#7B4CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#7B4CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4CB2
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4CB2#FFFFFF#000000##FFFFFF
##7B4CB21.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2163B5
Deuteranopia (green-blind)
#3363B0
Tritanopia (blue-blind)
#706078
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7b4cb2;
/* rgb */ color: rgb(123, 76, 178);
/* oklch */ color: oklch(51.8% 0.158 302.5);
Tailwind
colors: {
  custom: {
    50: '#a480ca',
    500: '#7b4cb2',
    950: '#000000',
  },
}
SCSS
$custom: #7b4cb2;
$custom-light: #a480ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4cb2",
  "rgb": {
    "r": 123,
    "g": 76,
    "b": 178
  },
  "hsl": {
    "h": 267.647,
    "s": 40.157,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51844,
    "c": 0.15784,
    "h": 302.5
  },
  "luminance": 0.12594
}

Semantic roles & 50–950 ramp

primary
#7B4CB2
secondary
#AFC496
accent
#D05899
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7B4CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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