#796BC8#796BC8

#796BC8 is a mid, vivid blue. Relative luminance 0.188; OKLCH L 58.4% C 0.139 H 288.2°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#796BC8
RGBrgb(121, 107, 200)
HSLhsl(249, 46%, 60%)
HSVhsv(249, 47%, 78%)
CMYKcmyk(39.5%, 46.5%, 0%, 21.6%)
CIE-LABlab(50.39, 27.93, -46.73)
CIE-LCHlch(50.39, 54.44, 300.87°)
OKLaboklab(58.35% 0.0435 -0.1321)
OKLCHoklch(58.35% 0.139 288.2)
XYZxyz(23.5653, 18.7497, 57.0098)
Luminance0.1875 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BC8 #BAC86B
analogous
#6B8CC8 #796BC8 #A76BC8
triadic
#796BC8 #C8796B #6BC879
tetradic
#796BC8 #C86B8C #BAC86B #6BC8A7
square
#796BC8 #C86B8C #BAC86B #6BC8A7
split-complementary
#796BC8 #C8A76B #8CC86B
monochromatic
#3F3287 #5443B3 #796BC8 #A198D9 #CAC4E9

Accessibility & contrast

On white

4.42
#796BC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#796BC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BC8
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BC8#FFFFFF#000000##000000
##796BC81.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#487ACB
Deuteranopia (green-blind)
#4876C6
Tritanopia (blue-blind)
#637E90
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #796bc8;
/* rgb */ color: rgb(121, 107, 200);
/* oklch */ color: oklch(58.4% 0.139 288.2);
Tailwind
colors: {
  custom: {
    50: '#a395d9',
    500: '#796bc8',
    950: '#000000',
  },
}
SCSS
$custom: #796bc8;
$custom-light: #a395d9;
$custom-dark: #000000;
JSON
{
  "hex": "#796bc8",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 200
  },
  "hsl": {
    "h": 249.032,
    "s": 45.813,
    "l": 60.196
  },
  "oklch": {
    "l": 0.58351,
    "c": 0.13903,
    "h": 288.2
  },
  "luminance": 0.1875
}

Semantic roles & 50–950 ramp

primary
#796BC8
secondary
#D4D9B6
accent
#B92CA4
background
#FAF9FD
surface
#F4F1FA
border
#CECBD3
text
#0F0D15
muted
#7F7E83

Preview Lab

Preview with #796BC8

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

Preview Lab → · Contrast checker → · Palette generator →

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