#7B4CB7#7B4CB7

#7B4CB7 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.2% C 0.164 H 301.2°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#7B4CB7
RGBrgb(123, 76, 183)
HSLhsl(266, 43%, 51%)
HSVhsv(266, 58%, 72%)
CMYKcmyk(32.8%, 58.5%, 0%, 28.2%)
CIE-LABlab(42.46, 41.90, -49.55)
CIE-LCHlch(42.46, 64.89, 310.22°)
OKLaboklab(52.17% 0.0848 -0.1403)
OKLCHoklch(52.17% 0.164 301.2)
XYZxyz(19.2980, 12.7986, 46.2443)
Luminance0.1280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4CB7 #88B74C
analogous
#4C52B7 #7B4CB7 #B04CB7
triadic
#7B4CB7 #B77B4C #4CB77B
tetradic
#7B4CB7 #B74C52 #88B74C #4CB7B0
square
#7B4CB7 #B74C52 #88B74C #4CB7B0
split-complementary
#7B4CB7 #B7B04C #52B74C
monochromatic
#412761 #5E398D #7B4CB7 #9B78C9 #BBA3DA

Accessibility & contrast

On white

5.90
#7B4CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#7B4CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4CB7
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4CB7#FFFFFF#000000##FFFFFF
##7B4CB71.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1864BA
Deuteranopia (green-blind)
#2E64B5
Tritanopia (blue-blind)
#6F627A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7b4cb7;
/* rgb */ color: rgb(123, 76, 183);
/* oklch */ color: oklch(52.2% 0.164 301.2);
Tailwind
colors: {
  custom: {
    50: '#a580cd',
    500: '#7b4cb7',
    950: '#000000',
  },
}
SCSS
$custom: #7b4cb7;
$custom-light: #a580cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4cb7",
  "rgb": {
    "r": 123,
    "g": 76,
    "b": 183
  },
  "hsl": {
    "h": 266.355,
    "s": 42.629,
    "l": 50.784
  },
  "oklch": {
    "l": 0.52174,
    "c": 0.16393,
    "h": 301.2
  },
  "luminance": 0.12799
}

Semantic roles & 50–950 ramp

primary
#7B4CB7
secondary
#B2C798
accent
#D2559B
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7B4CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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