#796ECB#796ECB

#796ECB is a mid, vivid blue. Relative luminance 0.195; OKLCH L 59.1% C 0.139 H 286.8°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#796ECB
RGBrgb(121, 110, 203)
HSLhsl(247, 47%, 61%)
HSVhsv(247, 46%, 80%)
CMYKcmyk(40.4%, 45.8%, 0%, 20.4%)
CIE-LABlab(51.30, 26.99, -47.00)
CIE-LCHlch(51.30, 54.20, 299.86°)
OKLaboklab(59.09% 0.04 -0.1328)
OKLCHoklch(59.09% 0.139 286.8)
XYZxyz(24.2376, 19.5278, 58.9805)
Luminance0.1953 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796ECB #C0CB6E
analogous
#6E92CB #796ECB #A86ECB
triadic
#796ECB #CB796E #6ECB79
tetradic
#796ECB #CB6E92 #C0CB6E #6ECBA8
square
#796ECB #CB6E92 #C0CB6E #6ECBA8
split-complementary
#796ECB #CBA86E #92CB6E
monochromatic
#3D328C #5142B9 #796ECB #A39BDB #CCC8EB

Accessibility & contrast

On white

4.28
#796ECB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#796ECB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796ECB
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796ECB#FFFFFF#000000##000000
##796ECB1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B7DCE
Deuteranopia (green-blind)
#4A78C9
Tritanopia (blue-blind)
#628193
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #796ecb;
/* rgb */ color: rgb(121, 110, 203);
/* oklch */ color: oklch(59.1% 0.139 286.8);
Tailwind
colors: {
  custom: {
    50: '#a397db',
    500: '#796ecb',
    950: '#000000',
  },
}
SCSS
$custom: #796ecb;
$custom-light: #a397db;
$custom-dark: #000000;
JSON
{
  "hex": "#796ecb",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 203
  },
  "hsl": {
    "h": 247.097,
    "s": 47.208,
    "l": 61.373
  },
  "oklch": {
    "l": 0.59088,
    "c": 0.13874,
    "h": 286.8
  },
  "luminance": 0.19529
}

Semantic roles & 50–950 ramp

primary
#796ECB
secondary
#D8DCB9
accent
#BA2BA9
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #796ECB

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

Preview Lab → · Contrast checker → · Palette generator →

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