#7B4DB7#7B4DB7

#7B4DB7 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.3% C 0.162 H 301.0°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#7B4DB7
RGBrgb(123, 77, 183)
HSLhsl(266, 42%, 51%)
HSVhsv(266, 58%, 72%)
CMYKcmyk(32.8%, 57.9%, 0%, 28.2%)
CIE-LABlab(42.67, 41.34, -49.21)
CIE-LCHlch(42.67, 64.27, 310.04°)
OKLaboklab(52.33% 0.0836 -0.1393)
OKLCHoklch(52.33% 0.162 301)
XYZxyz(19.3675, 12.9375, 46.2674)
Luminance0.1294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4DB7 #89B74D
analogous
#4D54B7 #7B4DB7 #B04DB7
triadic
#7B4DB7 #B77B4D #4DB77B
tetradic
#7B4DB7 #B74D54 #89B74D #4DB7B0
square
#7B4DB7 #B74D54 #89B74D #4DB7B0
split-complementary
#7B4DB7 #B7B04D #54B74D
monochromatic
#412862 #5E398E #7B4DB7 #9B79C9 #BCA4DA

Accessibility & contrast

On white

5.85
#7B4DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#7B4DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4DB7
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4DB7#FFFFFF#000000##FFFFFF
##7B4DB71.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B64BA
Deuteranopia (green-blind)
#2F64B5
Tritanopia (blue-blind)
#6F627A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7b4db7;
/* rgb */ color: rgb(123, 77, 183);
/* oklch */ color: oklch(52.3% 0.162 301.0);
Tailwind
colors: {
  custom: {
    50: '#a581cd',
    500: '#7b4db7',
    950: '#000000',
  },
}
SCSS
$custom: #7b4db7;
$custom-light: #a581cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4db7",
  "rgb": {
    "r": 123,
    "g": 77,
    "b": 183
  },
  "hsl": {
    "h": 266.038,
    "s": 42.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52328,
    "c": 0.16244,
    "h": 301
  },
  "luminance": 0.12938
}

Semantic roles & 50–950 ramp

primary
#7B4DB7
secondary
#B3C798
accent
#D2569C
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7B4DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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