#796CA7#796CA7

#796CA7 is a mid, moderate violet. Relative luminance 0.176; OKLCH L 56.7% C 0.090 H 293.4°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#796CA7
RGBrgb(121, 108, 167)
HSLhsl(253, 25%, 54%)
HSVhsv(253, 35%, 65%)
CMYKcmyk(27.5%, 35.3%, 0%, 34.5%)
CIE-LABlab(48.98, 18.39, -29.85)
CIE-LCHlch(48.98, 35.06, 301.64°)
OKLaboklab(56.74% 0.036 -0.083)
OKLCHoklch(56.74% 0.09 293.4)
XYZxyz(20.2211, 17.5798, 38.8796)
Luminance0.1758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CA7 #9AA76C
analogous
#6C7DA7 #796CA7 #976CA7
triadic
#796CA7 #A7796C #6CA779
tetradic
#796CA7 #A76C7D #9AA76C #6CA797
square
#796CA7 #A76C7D #9AA76C #6CA797
split-complementary
#796CA7 #A7976C #7DA76C
monochromatic
#42395F #5C5086 #796CA7 #9C92BE #BFB9D5

Accessibility & contrast

On white

4.65
#796CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#796CA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #796CA7
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CA7#FFFFFF#000000##FFFFFF
##796CA71.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C75A9
Deuteranopia (green-blind)
#5E73A5
Tritanopia (blue-blind)
#6F7682
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #796ca7;
/* rgb */ color: rgb(121, 108, 167);
/* oklch */ color: oklch(56.7% 0.090 293.4);
Tailwind
colors: {
  custom: {
    50: '#a196c1',
    500: '#796ca7',
    950: '#000000',
  },
}
SCSS
$custom: #796ca7;
$custom-light: #a196c1;
$custom-dark: #000000;
JSON
{
  "hex": "#796ca7",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 167
  },
  "hsl": {
    "h": 253.22,
    "s": 25.106,
    "l": 53.922
  },
  "oklch": {
    "l": 0.56737,
    "c": 0.09046,
    "h": 293.4
  },
  "luminance": 0.1758
}

Semantic roles & 50–950 ramp

primary
#796CA7
secondary
#BEC4AB
accent
#C266AD
background
#FAF9FB
surface
#F3F2F7
border
#CDCCD0
text
#0F0D12
muted
#7F7E81

Preview Lab

Preview with #796CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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