#796BBA#796BBA

#796BBA is a mid, moderate violet. Relative luminance 0.181; OKLCH L 57.5% C 0.119 H 290.3°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#796BBA
RGBrgb(121, 107, 186)
HSLhsl(251, 36%, 57%)
HSVhsv(251, 42%, 73%)
CMYKcmyk(34.9%, 42.5%, 0%, 27.1%)
CIE-LABlab(49.65, 24.05, -39.85)
CIE-LCHlch(49.65, 46.55, 301.11°)
OKLaboklab(57.55% 0.0414 -0.112)
OKLCHoklch(57.55% 0.119 290.3)
XYZxyz(22.0034, 18.1250, 48.7840)
Luminance0.1813 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BBA #ACBA6B
analogous
#6B84BA #796BBA #A16BBA
triadic
#796BBA #BA796B #6BBA79
tetradic
#796BBA #BA6B84 #ACBA6B #6BBAA1
square
#796BBA #BA6B84 #ACBA6B #6BBAA1
split-complementary
#796BBA #BAA16B #84BA6B
monochromatic
#413674 #594A9E #796BBA #9F95CD #C5BEE1

Accessibility & contrast

On white

4.54
#796BBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#796BBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BBA
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BBA#FFFFFF#000000##000000
##796BBA1.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5178BD
Deuteranopia (green-blind)
#5274B8
Tritanopia (blue-blind)
#697A89
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #796bba;
/* rgb */ color: rgb(121, 107, 186);
/* oklch */ color: oklch(57.5% 0.119 290.3);
Tailwind
colors: {
  custom: {
    50: '#a295cf',
    500: '#796bba',
    950: '#000000',
  },
}
SCSS
$custom: #796bba;
$custom-light: #a295cf;
$custom-dark: #000000;
JSON
{
  "hex": "#796bba",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 186
  },
  "hsl": {
    "h": 250.633,
    "s": 36.406,
    "l": 57.451
  },
  "oklch": {
    "l": 0.57545,
    "c": 0.11938,
    "h": 290.3
  },
  "luminance": 0.18126
}

Semantic roles & 50–950 ramp

primary
#796BBA
secondary
#CBD0B0
accent
#CC5BB8
background
#FAF9FC
surface
#F4F1F9
border
#CECBD2
text
#0F0D14
muted
#7F7E82

Preview Lab

Preview with #796BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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