#796BCB#796BCB

#796BCB is a mid, vivid blue. Relative luminance 0.189; OKLCH L 58.5% C 0.143 H 287.8°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#796BCB
RGBrgb(121, 107, 203)
HSLhsl(249, 48%, 61%)
HSVhsv(249, 47%, 80%)
CMYKcmyk(40.4%, 47.3%, 0%, 20.4%)
CIE-LABlab(50.56, 28.78, -48.18)
CIE-LCHlch(50.56, 56.12, 300.85°)
OKLaboklab(58.53% 0.0438 -0.1363)
OKLCHoklch(58.53% 0.143 287.8)
XYZxyz(23.9193, 18.8913, 58.8744)
Luminance0.1889 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BCB #BDCB6B
analogous
#6B8DCB #796BCB #A96BCB
triadic
#796BCB #CB796B #6BCB79
tetradic
#796BCB #CB6B8D #BDCB6B #6BCBA9
square
#796BCB #CB6B8D #BDCB6B #6BCBA9
split-complementary
#796BCB #CBA96B #8DCB6B
monochromatic
#3E318B #5241B8 #796BCB #A298DB #CBC6EB

Accessibility & contrast

On white

4.39
#796BCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#796BCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BCB
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BCB#FFFFFF#000000##000000
##796BCB1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#467BCE
Deuteranopia (green-blind)
#4676C9
Tritanopia (blue-blind)
#627E91
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #796bcb;
/* rgb */ color: rgb(121, 107, 203);
/* oklch */ color: oklch(58.5% 0.143 287.8);
Tailwind
colors: {
  custom: {
    50: '#a495db',
    500: '#796bcb',
    950: '#000000',
  },
}
SCSS
$custom: #796bcb;
$custom-light: #a495db;
$custom-dark: #000000;
JSON
{
  "hex": "#796bcb",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 203
  },
  "hsl": {
    "h": 248.75,
    "s": 48,
    "l": 60.784
  },
  "oklch": {
    "l": 0.58531,
    "c": 0.14319,
    "h": 287.8
  },
  "luminance": 0.18892
}

Semantic roles & 50–950 ramp

primary
#796BCB
secondary
#D6DBB7
accent
#BB2AA6
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #796BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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