#796EC6#796EC6

#796EC6 is a mid, vivid blue. Relative luminance 0.193; OKLCH L 58.8% C 0.132 H 287.4°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#796EC6
RGBrgb(121, 110, 198)
HSLhsl(248, 44%, 60%)
HSVhsv(248, 44%, 78%)
CMYKcmyk(38.9%, 44.4%, 0%, 22.4%)
CIE-LABlab(51.03, 25.58, -44.57)
CIE-LCHlch(51.03, 51.39, 299.85°)
OKLaboklab(58.8% 0.0393 -0.1257)
OKLCHoklch(58.8% 0.132 287.4)
XYZxyz(23.6513, 19.2933, 55.8930)
Luminance0.1929 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796EC6 #BBC66E
analogous
#6E8FC6 #796EC6 #A56EC6
triadic
#796EC6 #C6796E #6EC679
tetradic
#796EC6 #C66E8F #BBC66E #6EC6A5
square
#796EC6 #C66E8F #BBC66E #6EC6A5
split-complementary
#796EC6 #C6A56E #8FC66E
monochromatic
#3E3485 #5346B1 #796EC6 #A29AD7 #CAC6E9

Accessibility & contrast

On white

4.32
#796EC6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#796EC6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796EC6
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796EC6#FFFFFF#000000##000000
##796EC61.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F7CC9
Deuteranopia (green-blind)
#4E77C4
Tritanopia (blue-blind)
#647F90
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #796ec6;
/* rgb */ color: rgb(121, 110, 198);
/* oklch */ color: oklch(58.8% 0.132 287.4);
Tailwind
colors: {
  custom: {
    50: '#a397d8',
    500: '#796ec6',
    950: '#000000',
  },
}
SCSS
$custom: #796ec6;
$custom-light: #a397d8;
$custom-dark: #000000;
JSON
{
  "hex": "#796ec6",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 198
  },
  "hsl": {
    "h": 247.5,
    "s": 43.564,
    "l": 60.392
  },
  "oklch": {
    "l": 0.58796,
    "c": 0.13175,
    "h": 287.4
  },
  "luminance": 0.19294
}

Semantic roles & 50–950 ramp

primary
#796EC6
secondary
#D5D9B7
accent
#B72FA6
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #796EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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