#796BA2#796BA2

#796BA2 is a mid, moderate violet. Relative luminance 0.172; OKLCH L 56.3% C 0.085 H 295.2°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#796BA2
RGBrgb(121, 107, 162)
HSLhsl(255, 23%, 53%)
HSVhsv(255, 34%, 64%)
CMYKcmyk(25.3%, 34%, 0%, 36.5%)
CIE-LABlab(48.50, 17.71, -27.68)
CIE-LCHlch(48.50, 32.86, 302.61°)
OKLaboklab(56.29% 0.0362 -0.0767)
OKLCHoklch(56.29% 0.085 295.2)
XYZxyz(19.6629, 17.1888, 36.4572)
Luminance0.1719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BA2 #94A26B
analogous
#6B78A2 #796BA2 #956BA2
triadic
#796BA2 #A2796B #6BA279
tetradic
#796BA2 #A26B78 #94A26B #6BA295
square
#796BA2 #A26B78 #94A26B #6BA295
split-complementary
#796BA2 #A2956B #78A26B
monochromatic
#41395A #5C5080 #796BA2 #9B91BA #BDB6D1

Accessibility & contrast

On white

4.73
#796BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#796BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796BA2
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BA2#FFFFFF#000000##FFFFFF
##796BA21.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D74A4
Deuteranopia (green-blind)
#5F72A1
Tritanopia (blue-blind)
#71747F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #796ba2;
/* rgb */ color: rgb(121, 107, 162);
/* oklch */ color: oklch(56.3% 0.085 295.2);
Tailwind
colors: {
  custom: {
    50: '#a195bd',
    500: '#796ba2',
    950: '#000000',
  },
}
SCSS
$custom: #796ba2;
$custom-light: #a195bd;
$custom-dark: #000000;
JSON
{
  "hex": "#796ba2",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 162
  },
  "hsl": {
    "h": 255.273,
    "s": 22.822,
    "l": 52.745
  },
  "oklch": {
    "l": 0.56291,
    "c": 0.08485,
    "h": 295.2
  },
  "luminance": 0.17189
}

Semantic roles & 50–950 ramp

primary
#796BA2
secondary
#BAC0A8
accent
#BF68A9
background
#F9F9FB
surface
#F2F1F6
border
#CCCBD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #796BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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