#796BC4#796BC4

#796BC4 is a mid, vivid blue. Relative luminance 0.186; OKLCH L 58.1% C 0.133 H 288.8°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#796BC4
RGBrgb(121, 107, 196)
HSLhsl(249, 43%, 59%)
HSVhsv(249, 45%, 77%)
CMYKcmyk(38.3%, 45.4%, 0%, 23.1%)
CIE-LABlab(50.17, 26.81, -44.78)
CIE-LCHlch(50.17, 52.19, 300.91°)
OKLaboklab(58.12% 0.0429 -0.1264)
OKLCHoklch(58.12% 0.133 288.8)
XYZxyz(23.1039, 18.5652, 54.5800)
Luminance0.1857 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BC4 #B6C46B
analogous
#6B8AC4 #796BC4 #A66BC4
triadic
#796BC4 #C4796B #6BC479
tetradic
#796BC4 #C46B8A #B6C46B #6BC4A6
square
#796BC4 #C46B8A #B6C46B #6BC4A6
split-complementary
#796BC4 #C4A66B #8AC46B
monochromatic
#403381 #5545AD #796BC4 #A197D5 #C8C3E7

Accessibility & contrast

On white

4.46
#796BC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#796BC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BC4
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BC4#FFFFFF#000000##000000
##796BC41.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B79C7
Deuteranopia (green-blind)
#4B75C2
Tritanopia (blue-blind)
#657D8E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #796bc4;
/* rgb */ color: rgb(121, 107, 196);
/* oklch */ color: oklch(58.1% 0.133 288.8);
Tailwind
colors: {
  custom: {
    50: '#a395d6',
    500: '#796bc4',
    950: '#000000',
  },
}
SCSS
$custom: #796bc4;
$custom-light: #a395d6;
$custom-dark: #000000;
JSON
{
  "hex": "#796bc4",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 196
  },
  "hsl": {
    "h": 249.438,
    "s": 42.995,
    "l": 59.412
  },
  "oklch": {
    "l": 0.58115,
    "c": 0.13346,
    "h": 288.8
  },
  "luminance": 0.18566
}

Semantic roles & 50–950 ramp

primary
#796BC4
secondary
#D1D7B4
accent
#D355BF
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #796BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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