#796CD7#796CD7

#796CD7 is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.5% C 0.158 H 286.1°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#796CD7
RGBrgb(121, 108, 215)
HSLhsl(247, 57%, 63%)
HSVhsv(247, 50%, 84%)
CMYKcmyk(43.7%, 49.8%, 0%, 15.7%)
CIE-LABlab(51.49, 31.61, -53.52)
CIE-LCHlch(51.49, 62.16, 300.57°)
OKLaboklab(59.45% 0.0438 -0.152)
OKLCHoklch(59.45% 0.158 286.1)
XYZxyz(25.5099, 19.6953, 66.7343)
Luminance0.1970 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CD7 #CAD76C
analogous
#6C94D7 #796CD7 #AE6CD7
triadic
#796CD7 #D7796C #6CD779
tetradic
#796CD7 #D76C94 #CAD76C #6CD7AE
square
#796CD7 #D76C94 #CAD76C #6CD7AE
split-complementary
#796CD7 #D7AE6C #94D76C
monochromatic
#392B9E #4D3CCA #796CD7 #A59CE4 #D1CCF1

Accessibility & contrast

On white

4.25
#796CD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#796CD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CD7
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CD7#FFFFFF#000000##000000
##796CD71.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E7EDB
Deuteranopia (green-blind)
#3B78D5
Tritanopia (blue-blind)
#5C8297
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #796cd7;
/* rgb */ color: rgb(121, 108, 215);
/* oklch */ color: oklch(59.5% 0.158 286.1);
Tailwind
colors: {
  custom: {
    50: '#a596e4',
    500: '#796cd7',
    950: '#000000',
  },
}
SCSS
$custom: #796cd7;
$custom-light: #a596e4;
$custom-dark: #000000;
JSON
{
  "hex": "#796cd7",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 215
  },
  "hsl": {
    "h": 247.29,
    "s": 57.219,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59453,
    "c": 0.15817,
    "h": 286.1
  },
  "luminance": 0.19696
}

Semantic roles & 50–950 ramp

primary
#796CD7
secondary
#DEE2BC
accent
#C521B1
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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