#796CA9#796CA9

#796CA9 is a mid, moderate violet. Relative luminance 0.177; OKLCH L 56.8% C 0.093 H 293.0°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#796CA9
RGBrgb(121, 108, 169)
HSLhsl(253, 26%, 54%)
HSVhsv(253, 36%, 66%)
CMYKcmyk(28.4%, 36.1%, 0%, 33.7%)
CIE-LABlab(49.07, 18.91, -30.88)
CIE-LCHlch(49.07, 36.21, 301.48°)
OKLaboklab(56.84% 0.0364 -0.0859)
OKLCHoklch(56.84% 0.093 293)
XYZxyz(20.4074, 17.6543, 39.8609)
Luminance0.1766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CA9 #9CA96C
analogous
#6C7EA9 #796CA9 #986CA9
triadic
#796CA9 #A9796C #6CA979
tetradic
#796CA9 #A96C7E #9CA96C #6CA998
square
#796CA9 #A96C7E #9CA96C #6CA998
split-complementary
#796CA9 #A9986C #7EA96C
monochromatic
#423962 #5C5088 #796CA9 #9C93C0 #BFB9D6

Accessibility & contrast

On white

4.63
#796CA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #796CA9
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CA9#FFFFFF#000000##FFFFFF
##796CA91.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B75AB
Deuteranopia (green-blind)
#5D74A7
Tritanopia (blue-blind)
#6F7783
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #796ca9;
/* rgb */ color: rgb(121, 108, 169);
/* oklch */ color: oklch(56.8% 0.093 293.0);
Tailwind
colors: {
  custom: {
    50: '#a196c3',
    500: '#796ca9',
    950: '#000000',
  },
}
SCSS
$custom: #796ca9;
$custom-light: #a196c3;
$custom-dark: #000000;
JSON
{
  "hex": "#796ca9",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 169
  },
  "hsl": {
    "h": 252.787,
    "s": 26.18,
    "l": 54.314
  },
  "oklch": {
    "l": 0.56837,
    "c": 0.09336,
    "h": 293
  },
  "luminance": 0.17655
}

Semantic roles & 50–950 ramp

primary
#796CA9
secondary
#C0C5AB
accent
#C365AF
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0D12
muted
#7F7E81

Preview Lab

Preview with #796CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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