#796CB3#796CB3

#796CB3 is a mid, moderate violet. Relative luminance 0.180; OKLCH L 57.4% C 0.108 H 291.0°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#796CB3
RGBrgb(121, 108, 179)
HSLhsl(251, 32%, 56%)
HSVhsv(251, 40%, 70%)
CMYKcmyk(32.4%, 39.7%, 0%, 29.8%)
CIE-LABlab(49.55, 21.55, -35.95)
CIE-LCHlch(49.55, 41.92, 300.94°)
OKLaboklab(57.36% 0.0386 -0.1006)
OKLCHoklch(57.36% 0.108 291)
XYZxyz(21.3823, 18.0443, 44.9954)
Luminance0.1804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CB3 #A6B36C
analogous
#6C83B3 #796CB3 #9D6CB3
triadic
#796CB3 #B3796C #6CB379
tetradic
#796CB3 #B36C83 #A6B36C #6CB39D
square
#796CB3 #B36C83 #A6B36C #6CB39D
split-complementary
#796CB3 #B39D6C #83B36C
monochromatic
#42386D #5A4D95 #796CB3 #9E94C8 #C3BDDD

Accessibility & contrast

On white

4.56
#796CB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#796CB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CB3
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CB3#FFFFFF#000000##000000
##796CB31.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5777B6
Deuteranopia (green-blind)
#5874B1
Tritanopia (blue-blind)
#6B7987
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #796cb3;
/* rgb */ color: rgb(121, 108, 179);
/* oklch */ color: oklch(57.4% 0.108 291.0);
Tailwind
colors: {
  custom: {
    50: '#a296ca',
    500: '#796cb3',
    950: '#000000',
  },
}
SCSS
$custom: #796cb3;
$custom-light: #a296ca;
$custom-dark: #000000;
JSON
{
  "hex": "#796cb3",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 179
  },
  "hsl": {
    "h": 250.986,
    "s": 31.839,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57356,
    "c": 0.10781,
    "h": 291
  },
  "luminance": 0.18045
}

Semantic roles & 50–950 ramp

primary
#796CB3
secondary
#C7CCAF
accent
#C860B5
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #796CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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