#796BC6#796BC6

#796BC6 is a mid, vivid blue. Relative luminance 0.187; OKLCH L 58.2% C 0.136 H 288.5°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#796BC6
RGBrgb(121, 107, 198)
HSLhsl(249, 44%, 60%)
HSVhsv(249, 46%, 78%)
CMYKcmyk(38.9%, 46%, 0%, 22.4%)
CIE-LABlab(50.28, 27.37, -45.76)
CIE-LCHlch(50.28, 53.32, 300.89°)
OKLaboklab(58.23% 0.0432 -0.1292)
OKLCHoklch(58.23% 0.136 288.5)
XYZxyz(23.3331, 18.6568, 55.7869)
Luminance0.1866 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BC6 #B8C66B
analogous
#6B8AC6 #796BC6 #A76BC6
triadic
#796BC6 #C6796B #6BC679
tetradic
#796BC6 #C66B8A #B8C66B #6BC6A7
square
#796BC6 #C66B8A #B8C66B #6BC6A7
split-complementary
#796BC6 #C6A76B #8AC66B
monochromatic
#3F3384 #5444B0 #796BC6 #A197D7 #C9C3E8

Accessibility & contrast

On white

4.44
#796BC6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#796BC6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BC6
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BC6#FFFFFF#000000##000000
##796BC61.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A7AC9
Deuteranopia (green-blind)
#4A75C4
Tritanopia (blue-blind)
#647D8F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #796bc6;
/* rgb */ color: rgb(121, 107, 198);
/* oklch */ color: oklch(58.2% 0.136 288.5);
Tailwind
colors: {
  custom: {
    50: '#a395d8',
    500: '#796bc6',
    950: '#000000',
  },
}
SCSS
$custom: #796bc6;
$custom-light: #a395d8;
$custom-dark: #000000;
JSON
{
  "hex": "#796bc6",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 198
  },
  "hsl": {
    "h": 249.231,
    "s": 44.39,
    "l": 59.804
  },
  "oklch": {
    "l": 0.58233,
    "c": 0.13625,
    "h": 288.5
  },
  "luminance": 0.18658
}

Semantic roles & 50–950 ramp

primary
#796BC6
secondary
#D3D8B5
accent
#D454C0
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #796BC6

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

Preview Lab → · Contrast checker → · Palette generator →

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