#796CB9#796CB9

#796CB9 is a mid, moderate violet. Relative luminance 0.183; OKLCH L 57.7% C 0.116 H 290.0°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#796CB9
RGBrgb(121, 108, 185)
HSLhsl(250, 35%, 57%)
HSVhsv(250, 42%, 73%)
CMYKcmyk(34.6%, 41.6%, 0%, 27.5%)
CIE-LABlab(49.85, 23.18, -38.96)
CIE-LCHlch(49.85, 45.33, 300.75°)
OKLaboklab(57.68% 0.0398 -0.1094)
OKLCHoklch(57.68% 0.116 290)
XYZxyz(22.0024, 18.2923, 48.2611)
Luminance0.1829 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CB9 #ACB96C
analogous
#6C85B9 #796CB9 #A06CB9
triadic
#796CB9 #B9796C #6CB979
tetradic
#796CB9 #B96C85 #ACB96C #6CB9A0
square
#796CB9 #B96C85 #ACB96C #6CB9A0
split-complementary
#796CB9 #B9A06C #85B96C
monochromatic
#413774 #594B9D #796CB9 #9F95CD #C5BFE0

Accessibility & contrast

On white

4.51
#796CB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#796CB9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CB9
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CB9#FFFFFF#000000##000000
##796CB91.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5378BC
Deuteranopia (green-blind)
#5475B7
Tritanopia (blue-blind)
#697A89
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #796cb9;
/* rgb */ color: rgb(121, 108, 185);
/* oklch */ color: oklch(57.7% 0.116 290.0);
Tailwind
colors: {
  custom: {
    50: '#a296ce',
    500: '#796cb9',
    950: '#000000',
  },
}
SCSS
$custom: #796cb9;
$custom-light: #a296ce;
$custom-dark: #000000;
JSON
{
  "hex": "#796cb9",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 185
  },
  "hsl": {
    "h": 250.13,
    "s": 35.484,
    "l": 57.451
  },
  "oklch": {
    "l": 0.57681,
    "c": 0.1164,
    "h": 290
  },
  "luminance": 0.18293
}

Semantic roles & 50–950 ramp

primary
#796CB9
secondary
#CBD0B1
accent
#CC5CB9
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #796CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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