#7B4E95#7B4E95

#7B4E95 is a mid, moderate violet. Relative luminance 0.118; OKLCH L 50.4% C 0.119 H 312.0°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#7B4E95
RGBrgb(123, 78, 149)
HSLhsl(278, 31%, 45%)
HSVhsv(278, 48%, 58%)
CMYKcmyk(17.4%, 47.7%, 0%, 41.6%)
CIE-LABlab(40.94, 32.44, -31.75)
CIE-LCHlch(40.94, 45.39, 315.61°)
OKLaboklab(50.42% 0.0796 -0.0883)
OKLCHoklch(50.42% 0.119 312)
XYZxyz(16.3166, 11.8300, 29.8518)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B4E95 #68954E
analogous
#574E95 #7B4E95 #954E8C
triadic
#7B4E95 #957B4E #4E957B
tetradic
#7B4E95 #95574E #68954E #4E8C95
square
#7B4E95 #95574E #68954E #4E8C95
split-complementary
#7B4E95 #8C954E #4E9557
monochromatic
#392445 #5A396D #7B4E95 #996DB3 #B596C8

Accessibility & contrast

On white

6.24
#7B4E95 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7B4E95 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B4E95
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B4E95#FFFFFF#000000##FFFFFF
##7B4E951.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5E98
Deuteranopia (green-blind)
#4B6293
Tritanopia (blue-blind)
#78596A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7b4e95;
/* rgb */ color: rgb(123, 78, 149);
/* oklch */ color: oklch(50.4% 0.119 312.0);
Tailwind
colors: {
  custom: {
    50: '#a381b4',
    500: '#7b4e95',
    950: '#000000',
  },
}
SCSS
$custom: #7b4e95;
$custom-light: #a381b4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b4e95",
  "rgb": {
    "r": 123,
    "g": 78,
    "b": 149
  },
  "hsl": {
    "h": 278.028,
    "s": 31.278,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50424,
    "c": 0.11889,
    "h": 312
  },
  "luminance": 0.1183
}

Semantic roles & 50–950 ramp

primary
#7B4E95
secondary
#9AB48A
accent
#C76086
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7B4E95

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

Preview Lab → · Contrast checker → · Palette generator →

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