#796CC2#796CC2

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

Color values

HEX#796CC2
RGBrgb(121, 108, 194)
HSLhsl(249, 41%, 59%)
HSVhsv(249, 44%, 76%)
CMYKcmyk(37.6%, 44.3%, 0%, 23.9%)
CIE-LABlab(50.32, 25.66, -43.41)
CIE-LCHlch(50.32, 50.42, 300.58°)
OKLaboklab(58.19% 0.0413 -0.1223)
OKLCHoklch(58.19% 0.129 288.7)
XYZxyz(22.9827, 18.6844, 53.4240)
Luminance0.1868 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CC2 #B5C26C
analogous
#6C8AC2 #796CC2 #A46CC2
triadic
#796CC2 #C2796C #6CC279
tetradic
#796CC2 #C26C8A #B5C26C #6CC2A4
square
#796CC2 #C26C8A #B5C26C #6CC2A4
split-complementary
#796CC2 #C2A46C #8AC26C
monochromatic
#40357F #5647AA #796CC2 #A097D4 #C8C3E6

Accessibility & contrast

On white

4.43
#796CC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#796CC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CC2
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CC2#FFFFFF#000000##000000
##796CC21.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E7AC5
Deuteranopia (green-blind)
#4E76C0
Tritanopia (blue-blind)
#667D8E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #796cc2;
/* rgb */ color: rgb(121, 108, 194);
/* oklch */ color: oklch(58.2% 0.129 288.7);
Tailwind
colors: {
  custom: {
    50: '#a396d5',
    500: '#796cc2',
    950: '#000000',
  },
}
SCSS
$custom: #796cc2;
$custom-light: #a396d5;
$custom-dark: #000000;
JSON
{
  "hex": "#796cc2",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 194
  },
  "hsl": {
    "h": 249.07,
    "s": 41.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.58187,
    "c": 0.12914,
    "h": 288.7
  },
  "luminance": 0.18685
}

Semantic roles & 50–950 ramp

primary
#796CC2
secondary
#D1D6B4
accent
#D157BF
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #796CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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