#796CA5#796CA5

#796CA5 is a mid, moderate violet. Relative luminance 0.175; OKLCH L 56.6% C 0.088 H 293.9°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#796CA5
RGBrgb(121, 108, 165)
HSLhsl(254, 24%, 54%)
HSVhsv(254, 35%, 65%)
CMYKcmyk(26.7%, 34.5%, 0%, 35.3%)
CIE-LABlab(48.89, 17.88, -28.82)
CIE-LCHlch(48.89, 33.91, 301.81°)
OKLaboklab(56.64% 0.0355 -0.08)
OKLCHoklch(56.64% 0.088 293.9)
XYZxyz(20.0376, 17.5064, 37.9134)
Luminance0.1751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CA5 #98A56C
analogous
#6C7BA5 #796CA5 #956CA5
triadic
#796CA5 #A5796C #6CA579
tetradic
#796CA5 #A56C7B #98A56C #6CA595
square
#796CA5 #A56C7B #98A56C #6CA595
split-complementary
#796CA5 #A5956C #7BA56C
monochromatic
#41395D #5C5083 #796CA5 #9C92BC #BEB8D3

Accessibility & contrast

On white

4.67
#796CA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#796CA5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #796CA5
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CA5#FFFFFF#000000##FFFFFF
##796CA51.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D75A7
Deuteranopia (green-blind)
#5F73A3
Tritanopia (blue-blind)
#707681
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #796ca5;
/* rgb */ color: rgb(121, 108, 165);
/* oklch */ color: oklch(56.6% 0.088 293.9);
Tailwind
colors: {
  custom: {
    50: '#a196c0',
    500: '#796ca5',
    950: '#000000',
  },
}
SCSS
$custom: #796ca5;
$custom-light: #a196c0;
$custom-dark: #000000;
JSON
{
  "hex": "#796ca5",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 165
  },
  "hsl": {
    "h": 253.684,
    "s": 24.051,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56638,
    "c": 0.08754,
    "h": 293.9
  },
  "luminance": 0.17507
}

Semantic roles & 50–950 ramp

primary
#796CA5
secondary
#BDC3AA
accent
#C167AC
background
#FAF9FB
surface
#F3F2F7
border
#CDCCD0
text
#0F0D12
muted
#7F7E81

Preview Lab

Preview with #796CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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