#7B4E97#7B4E97

#7B4E97 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 50.5% C 0.121 H 311.2°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#7B4E97
RGBrgb(123, 78, 151)
HSLhsl(277, 32%, 45%)
HSVhsv(277, 48%, 59%)
CMYKcmyk(18.5%, 48.3%, 0%, 40.8%)
CIE-LABlab(41.05, 32.90, -32.79)
CIE-LCHlch(41.05, 46.45, 315.10°)
OKLaboklab(50.53% 0.0799 -0.0913)
OKLCHoklch(50.53% 0.121 311.2)
XYZxyz(16.4777, 11.8944, 30.7000)
Luminance0.1189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4E97 #6A974E
analogous
#564E97 #7B4E97 #974E8F
triadic
#7B4E97 #977B4E #4E977B
tetradic
#7B4E97 #97564E #6A974E #4E8F97
square
#7B4E97 #97564E #6A974E #4E8F97
split-complementary
#7B4E97 #8F974E #4E9756
monochromatic
#392446 #5A396F #7B4E97 #996EB4 #B696C9

Accessibility & contrast

On white

6.22
#7B4E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7B4E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4E97
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4E97#FFFFFF#000000##FFFFFF
##7B4E971.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5F9A
Deuteranopia (green-blind)
#4A6295
Tritanopia (blue-blind)
#78596B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7b4e97;
/* rgb */ color: rgb(123, 78, 151);
/* oklch */ color: oklch(50.5% 0.121 311.2);
Tailwind
colors: {
  custom: {
    50: '#a381b6',
    500: '#7b4e97',
    950: '#000000',
  },
}
SCSS
$custom: #7b4e97;
$custom-light: #a381b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4e97",
  "rgb": {
    "r": 123,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 276.986,
    "s": 31.878,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50534,
    "c": 0.12135,
    "h": 311.2
  },
  "luminance": 0.11894
}

Semantic roles & 50–950 ramp

primary
#7B4E97
secondary
#9BB68B
accent
#C86088
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7B4E97

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

Preview Lab → · Contrast checker → · Palette generator →

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