#796BC2#796BC2

#796BC2 is a mid, vivid blue. Relative luminance 0.185; OKLCH L 58.0% C 0.131 H 289.1°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#796BC2
RGBrgb(121, 107, 194)
HSLhsl(250, 42%, 59%)
HSVhsv(250, 45%, 76%)
CMYKcmyk(37.6%, 44.8%, 0%, 23.9%)
CIE-LABlab(50.07, 26.25, -43.80)
CIE-LCHlch(50.07, 51.07, 300.94°)
OKLaboklab(58% 0.0427 -0.1235)
OKLCHoklch(58% 0.131 289.1)
XYZxyz(22.8778, 18.4747, 53.3891)
Luminance0.1847 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BC2 #B4C26B
analogous
#6B89C2 #796BC2 #A56BC2
triadic
#796BC2 #C2796B #6BC279
tetradic
#796BC2 #C26B89 #B4C26B #6BC2A5
square
#796BC2 #C26B89 #B4C26B #6BC2A5
split-complementary
#796BC2 #C2A56B #89C26B
monochromatic
#40347E #5646AA #796BC2 #A096D4 #C7C2E6

Accessibility & contrast

On white

4.47
#796BC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#796BC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BC2
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BC2#FFFFFF#000000##000000
##796BC21.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D79C5
Deuteranopia (green-blind)
#4D75C0
Tritanopia (blue-blind)
#667C8D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #796bc2;
/* rgb */ color: rgb(121, 107, 194);
/* oklch */ color: oklch(58.0% 0.131 289.1);
Tailwind
colors: {
  custom: {
    50: '#a395d5',
    500: '#796bc2',
    950: '#000000',
  },
}
SCSS
$custom: #796bc2;
$custom-light: #a395d5;
$custom-dark: #000000;
JSON
{
  "hex": "#796bc2",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 194
  },
  "hsl": {
    "h": 249.655,
    "s": 41.627,
    "l": 59.02
  },
  "oklch": {
    "l": 0.57999,
    "c": 0.13066,
    "h": 289.1
  },
  "luminance": 0.18475
}

Semantic roles & 50–950 ramp

primary
#796BC2
secondary
#D0D5B3
accent
#D156BE
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #796BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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