#796CB2#796CB2

#796CB2 is a mid, moderate violet. Relative luminance 0.180; OKLCH L 57.3% C 0.106 H 291.2°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#796CB2
RGBrgb(121, 108, 178)
HSLhsl(251, 31%, 56%)
HSVhsv(251, 39%, 70%)
CMYKcmyk(32%, 39.3%, 0%, 30.2%)
CIE-LABlab(49.50, 21.28, -35.45)
CIE-LCHlch(49.50, 41.35, 300.98°)
OKLaboklab(57.3% 0.0385 -0.0992)
OKLCHoklch(57.3% 0.106 291.2)
XYZxyz(21.2815, 18.0040, 44.4647)
Luminance0.1800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CB2 #A5B26C
analogous
#6C82B2 #796CB2 #9C6CB2
triadic
#796CB2 #B2796C #6CB279
tetradic
#796CB2 #B26C82 #A5B26C #6CB29C
square
#796CB2 #B26C82 #A5B26C #6CB29C
split-complementary
#796CB2 #B29C6C #82B26C
monochromatic
#42386B #5A4D94 #796CB2 #9E94C7 #C2BCDC

Accessibility & contrast

On white

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

On black

4.60
#796CB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CB2
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CB2#FFFFFF#000000##000000
##796CB21.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5777B5
Deuteranopia (green-blind)
#5874B0
Tritanopia (blue-blind)
#6C7986
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #796cb2;
/* rgb */ color: rgb(121, 108, 178);
/* oklch */ color: oklch(57.3% 0.106 291.2);
Tailwind
colors: {
  custom: {
    50: '#a196c9',
    500: '#796cb2',
    950: '#000000',
  },
}
SCSS
$custom: #796cb2;
$custom-light: #a196c9;
$custom-dark: #000000;
JSON
{
  "hex": "#796cb2",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 178
  },
  "hsl": {
    "h": 251.143,
    "s": 31.25,
    "l": 56.078
  },
  "oklch": {
    "l": 0.57303,
    "c": 0.10637,
    "h": 291.2
  },
  "luminance": 0.18004
}

Semantic roles & 50–950 ramp

primary
#796CB2
secondary
#C6CBAE
accent
#C760B4
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #796CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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