#7A6797#7A6797

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

Color values

HEX#7A6797
RGBrgb(122, 103, 151)
HSLhsl(264, 19%, 50%)
HSVhsv(264, 32%, 59%)
CMYKcmyk(19.2%, 31.8%, 0%, 40.8%)
CIE-LABlab(47.07, 17.71, -23.40)
CIE-LCHlch(47.07, 29.35, 307.13°)
OKLaboklab(55.06% 0.0405 -0.0645)
OKLCHoklch(55.06% 0.076 302.1)
XYZxyz(18.4610, 16.0724, 31.4019)
Luminance0.1607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A6797 #849767
analogous
#676C97 #7A6797 #926797
triadic
#7A6797 #977A67 #67977A
tetradic
#7A6797 #97676C #849767 #679792
square
#7A6797 #97676C #849767 #679792
split-complementary
#7A6797 #979267 #6C9767
monochromatic
#3F354E #5D4E73 #7A6797 #9A8BB0 #BAB0C9

Accessibility & contrast

On white

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

On black

4.21
#7A6797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7A6797#FFFFFF#000000##FFFFFF
##7A67971.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D6F99
Deuteranopia (green-blind)
#606F96
Tritanopia (blue-blind)
#756E78
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7a6797;
/* rgb */ color: rgb(122, 103, 151);
/* oklch */ color: oklch(55.1% 0.076 302.1);
Tailwind
colors: {
  custom: {
    50: '#a192b5',
    500: '#7a6797',
    950: '#000000',
  },
}
SCSS
$custom: #7a6797;
$custom-light: #a192b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a6797",
  "rgb": {
    "r": 122,
    "g": 103,
    "b": 151
  },
  "hsl": {
    "h": 263.75,
    "s": 18.898,
    "l": 49.804
  },
  "oklch": {
    "l": 0.55063,
    "c": 0.07612,
    "h": 302.1
  },
  "luminance": 0.16072
}

Semantic roles & 50–950 ramp

primary
#7A6797
secondary
#AFB8A2
accent
#BC6C9C
background
#F9F9FB
surface
#F2F1F6
border
#CCCBD0
text
#0F0D11
muted
#7E7E80

Preview Lab

Preview with #7A6797

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

Preview Lab → · Contrast checker → · Palette generator →

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