#7B4CB3#7B4CB3

#7B4CB3 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.9% C 0.159 H 302.2°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#7B4CB3
RGBrgb(123, 76, 179)
HSLhsl(267, 40%, 50%)
HSVhsv(267, 58%, 70%)
CMYKcmyk(31.3%, 57.5%, 0%, 29.8%)
CIE-LABlab(42.21, 40.88, -47.60)
CIE-LCHlch(42.21, 62.75, 310.66°)
OKLaboklab(51.91% 0.0848 -0.1346)
OKLCHoklch(51.91% 0.159 302.2)
XYZxyz(18.8876, 12.6345, 44.0827)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4CB3 #84B34C
analogous
#4C50B3 #7B4CB3 #AF4CB3
triadic
#7B4CB3 #B37B4C #4CB37B
tetradic
#7B4CB3 #B34C50 #84B34C #4CB3AF
square
#7B4CB3 #B34C50 #84B34C #4CB3AF
split-complementary
#7B4CB3 #B3AF4C #50B34C
monochromatic
#40285D #5D3A88 #7B4CB3 #9B77C5 #BAA2D7

Accessibility & contrast

On white

5.95
#7B4CB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7B4CB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4CB3
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4CB3#FFFFFF#000000##FFFFFF
##7B4CB31.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F63B6
Deuteranopia (green-blind)
#3263B1
Tritanopia (blue-blind)
#706178
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7b4cb3;
/* rgb */ color: rgb(123, 76, 179);
/* oklch */ color: oklch(51.9% 0.159 302.2);
Tailwind
colors: {
  custom: {
    50: '#a580ca',
    500: '#7b4cb3',
    950: '#000000',
  },
}
SCSS
$custom: #7b4cb3;
$custom-light: #a580ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4cb3",
  "rgb": {
    "r": 123,
    "g": 76,
    "b": 179
  },
  "hsl": {
    "h": 267.379,
    "s": 40.392,
    "l": 50
  },
  "oklch": {
    "l": 0.51909,
    "c": 0.15907,
    "h": 302.2
  },
  "luminance": 0.12635
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7B4CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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