#7A6798#7A6798

#7A6798 is a mid, moderate violet. Relative luminance 0.161; OKLCH L 55.1% C 0.078 H 301.7°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7A6798
RGBrgb(122, 103, 152)
HSLhsl(263, 19%, 50%)
HSVhsv(263, 32%, 60%)
CMYKcmyk(19.7%, 32.2%, 0%, 40.4%)
CIE-LABlab(47.11, 17.95, -23.92)
CIE-LCHlch(47.11, 29.91, 306.89°)
OKLaboklab(55.11% 0.0408 -0.066)
OKLCHoklch(55.11% 0.078 301.7)
XYZxyz(18.5426, 16.1051, 31.8314)
Luminance0.1610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A6798 #859867
analogous
#676C98 #7A6798 #936798
triadic
#7A6798 #987A67 #67987A
tetradic
#7A6798 #98676C #859867 #679893
square
#7A6798 #98676C #859867 #679893
split-complementary
#7A6798 #989367 #6C9867
monochromatic
#3F364F #5D4E74 #7A6798 #9A8BB1 #BAB0C9

Accessibility & contrast

On white

4.98
#7A6798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7A6798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A6798
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A6798#FFFFFF#000000##FFFFFF
##7A67981.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C6F9A
Deuteranopia (green-blind)
#607097
Tritanopia (blue-blind)
#756E79
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7a6798;
/* rgb */ color: rgb(122, 103, 152);
/* oklch */ color: oklch(55.1% 0.078 301.7);
Tailwind
colors: {
  custom: {
    50: '#a192b6',
    500: '#7a6798',
    950: '#000000',
  },
}
SCSS
$custom: #7a6798;
$custom-light: #a192b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a6798",
  "rgb": {
    "r": 122,
    "g": 103,
    "b": 152
  },
  "hsl": {
    "h": 263.265,
    "s": 19.216,
    "l": 50
  },
  "oklch": {
    "l": 0.55109,
    "c": 0.07754,
    "h": 301.7
  },
  "luminance": 0.16105
}

Semantic roles & 50–950 ramp

primary
#7A6798
secondary
#B0B8A2
accent
#BC6C9D
background
#F9F9FB
surface
#F2F1F6
border
#CCCBD0
text
#0F0D11
muted
#7E7E80

Preview Lab

Preview with #7A6798

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

Preview Lab → · Contrast checker → · Palette generator →

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