#796BAE#796BAE

#796BAE is a mid, moderate violet. Relative luminance 0.176; OKLCH L 56.9% C 0.102 H 292.4°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#796BAE
RGBrgb(121, 107, 174)
HSLhsl(253, 29%, 55%)
HSVhsv(253, 39%, 68%)
CMYKcmyk(30.5%, 38.5%, 0%, 31.8%)
CIE-LABlab(49.05, 20.82, -33.83)
CIE-LCHlch(49.05, 39.72, 301.61°)
OKLaboklab(56.9% 0.039 -0.0945)
OKLCHoklch(56.9% 0.102 292.4)
XYZxyz(20.7809, 17.6360, 42.3454)
Luminance0.1764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BAE #A0AE6B
analogous
#6B7FAE #796BAE #9A6BAE
triadic
#796BAE #AE796B #6BAE79
tetradic
#796BAE #AE6B7F #A0AE6B #6BAE9A
square
#796BAE #AE6B7F #A0AE6B #6BAE9A
split-complementary
#796BAE #AE9A6B #7FAE6B
monochromatic
#423867 #5B4E8E #796BAE #9D93C4 #C1BAD9

Accessibility & contrast

On white

4.64
#796BAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#796BAE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #796BAE
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BAE#FFFFFF#000000##FFFFFF
##796BAE1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5875B1
Deuteranopia (green-blind)
#5973AC
Tritanopia (blue-blind)
#6D7784
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #796bae;
/* rgb */ color: rgb(121, 107, 174);
/* oklch */ color: oklch(56.9% 0.102 292.4);
Tailwind
colors: {
  custom: {
    50: '#a195c6',
    500: '#796bae',
    950: '#000000',
  },
}
SCSS
$custom: #796bae;
$custom-light: #a195c6;
$custom-dark: #000000;
JSON
{
  "hex": "#796bae",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 174
  },
  "hsl": {
    "h": 252.537,
    "s": 29.258,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56897,
    "c": 0.10222,
    "h": 292.4
  },
  "luminance": 0.17636
}

Semantic roles & 50–950 ramp

primary
#796BAE
secondary
#C3C8AC
accent
#C662B1
background
#FAF9FC
surface
#F3F1F8
border
#CDCBD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #796BAE

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

Preview Lab → · Contrast checker → · Palette generator →

#796BAE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva