#796CC7#796CC7

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

Color values

HEX#796CC7
RGBrgb(121, 108, 199)
HSLhsl(249, 45%, 60%)
HSVhsv(249, 46%, 78%)
CMYKcmyk(39.2%, 45.7%, 0%, 22%)
CIE-LABlab(50.59, 27.05, -45.85)
CIE-LCHlch(50.59, 53.24, 300.54°)
OKLaboklab(58.48% 0.042 -0.1295)
OKLCHoklch(58.48% 0.136 288)
XYZxyz(23.5537, 18.9128, 56.4313)
Luminance0.1891 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CC7 #BAC76C
analogous
#6C8DC7 #796CC7 #A66CC7
triadic
#796CC7 #C7796C #6CC779
tetradic
#796CC7 #C76C8D #BAC76C #6CC7A6
square
#796CC7 #C76C8D #BAC76C #6CC7A6
split-complementary
#796CC7 #C7A66C #8DC76C
monochromatic
#3F3386 #5444B2 #796CC7 #A198D8 #CAC5E9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796CC7#FFFFFF#000000##000000
##796CC71.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)
#4B7BCA
Deuteranopia (green-blind)
#4A76C5
Tritanopia (blue-blind)
#647E90
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #796cc7;
/* rgb */ color: rgb(121, 108, 199);
/* oklch */ color: oklch(58.5% 0.136 288.0);
Tailwind
colors: {
  custom: {
    50: '#a396d8',
    500: '#796cc7',
    950: '#000000',
  },
}
SCSS
$custom: #796cc7;
$custom-light: #a396d8;
$custom-dark: #000000;
JSON
{
  "hex": "#796cc7",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 199
  },
  "hsl": {
    "h": 248.571,
    "s": 44.828,
    "l": 60.196
  },
  "oklch": {
    "l": 0.58478,
    "c": 0.13615,
    "h": 288
  },
  "luminance": 0.18914
}

Semantic roles & 50–950 ramp

primary
#796CC7
secondary
#D4D9B6
accent
#B82EA4
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #796CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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