#7A5794#7A5794

#7A5794 is a mid, moderate violet. Relative luminance 0.131; OKLCH L 51.8% C 0.101 H 309.6°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#7A5794
RGBrgb(122, 87, 148)
HSLhsl(274, 26%, 46%)
HSVhsv(274, 41%, 58%)
CMYKcmyk(17.6%, 41.2%, 0%, 42%)
CIE-LABlab(42.90, 26.60, -28.09)
CIE-LCHlch(42.90, 38.68, 313.44°)
OKLaboklab(51.85% 0.0645 -0.0778)
OKLCHoklch(51.85% 0.101 309.6)
XYZxyz(16.7785, 13.0923, 29.6544)
Luminance0.1309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5794 #719457
analogous
#5B5794 #7A5794 #94578F
triadic
#7A5794 #947A57 #57947A
tetradic
#7A5794 #945B57 #719457 #578F94
square
#7A5794 #945B57 #719457 #578F94
split-complementary
#7A5794 #8F9457 #57945B
monochromatic
#3A2A47 #5A406D #7A5794 #9878B0 #B69FC7

Accessibility & contrast

On white

5.80
#7A5794 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#7A5794 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5794
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5794#FFFFFF#000000##FFFFFF
##7A57941.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A6496
Deuteranopia (green-blind)
#536692
Tritanopia (blue-blind)
#77606E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7a5794;
/* rgb */ color: rgb(122, 87, 148);
/* oklch */ color: oklch(51.8% 0.101 309.6);
Tailwind
colors: {
  custom: {
    50: '#a187b3',
    500: '#7a5794',
    950: '#000000',
  },
}
SCSS
$custom: #7a5794;
$custom-light: #a187b3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5794",
  "rgb": {
    "r": 122,
    "g": 87,
    "b": 148
  },
  "hsl": {
    "h": 274.426,
    "s": 25.957,
    "l": 46.078
  },
  "oklch": {
    "l": 0.5185,
    "c": 0.10104,
    "h": 309.6
  },
  "luminance": 0.13092
}

Semantic roles & 50–950 ramp

primary
#7A5794
secondary
#A1B493
accent
#C2658D
background
#FAF8FB
surface
#F3EFF6
border
#CDCAD0
text
#0F0B11
muted
#7F7C80

Preview Lab

Preview with #7A5794

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

Preview Lab → · Contrast checker → · Palette generator →

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