#7A6799#7A6799

#7A6799 is a mid, moderate violet. Relative luminance 0.161; OKLCH L 55.2% C 0.079 H 301.3°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7A6799
RGBrgb(122, 103, 153)
HSLhsl(263, 20%, 50%)
HSVhsv(263, 33%, 60%)
CMYKcmyk(20.3%, 32.7%, 0%, 40%)
CIE-LABlab(47.16, 18.20, -24.45)
CIE-LCHlch(47.16, 30.48, 306.66°)
OKLaboklab(55.16% 0.041 -0.0675)
OKLCHoklch(55.16% 0.079 301.3)
XYZxyz(18.6248, 16.1380, 32.2645)
Luminance0.1614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A6799 #869967
analogous
#676D99 #7A6799 #936799
triadic
#7A6799 #997A67 #67997A
tetradic
#7A6799 #99676D #869967 #679993
square
#7A6799 #99676D #869967 #679993
split-complementary
#7A6799 #999367 #6D9967
monochromatic
#403650 #5D4E75 #7A6799 #9A8CB2 #BAB0CA

Accessibility & contrast

On white

4.97
#7A6799 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7A6799 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A6799
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A6799#FFFFFF#000000##FFFFFF
##7A67991.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C709B
Deuteranopia (green-blind)
#5F7098
Tritanopia (blue-blind)
#756F79
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7a6799;
/* rgb */ color: rgb(122, 103, 153);
/* oklch */ color: oklch(55.2% 0.079 301.3);
Tailwind
colors: {
  custom: {
    50: '#a192b7',
    500: '#7a6799',
    950: '#000000',
  },
}
SCSS
$custom: #7a6799;
$custom-light: #a192b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a6799",
  "rgb": {
    "r": 122,
    "g": 103,
    "b": 153
  },
  "hsl": {
    "h": 262.8,
    "s": 19.685,
    "l": 50.196
  },
  "oklch": {
    "l": 0.55156,
    "c": 0.07896,
    "h": 301.3
  },
  "luminance": 0.16138
}

Semantic roles & 50–950 ramp

primary
#7A6799
secondary
#B1B9A3
accent
#BC6C9E
background
#F9F9FB
surface
#F2F1F6
border
#CCCBD0
text
#0F0D11
muted
#7E7E80

Preview Lab

Preview with #7A6799

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

Preview Lab → · Contrast checker → · Palette generator →

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