#796CD9#796CD9

#796CD9 is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.6% C 0.161 H 285.9°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#796CD9
RGBrgb(121, 108, 217)
HSLhsl(247, 59%, 64%)
HSVhsv(247, 50%, 85%)
CMYKcmyk(44.2%, 50.2%, 0%, 14.9%)
CIE-LABlab(51.61, 32.19, -54.47)
CIE-LCHlch(51.61, 63.27, 300.58°)
OKLaboklab(59.58% 0.044 -0.1547)
OKLCHoklch(59.58% 0.161 285.9)
XYZxyz(25.7685, 19.7988, 68.0960)
Luminance0.1980 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CD9 #CCD96C
analogous
#6C95D9 #796CD9 #AF6CD9
triadic
#796CD9 #D9796C #6CD979
tetradic
#796CD9 #D96C95 #CCD96C #6CD9AF
square
#796CD9 #D96C95 #CCD96C #6CD9AF
split-complementary
#796CD9 #D9AF6C #95D96C
monochromatic
#382AA1 #4D3BCC #796CD9 #A59DE6 #D2CDF2

Accessibility & contrast

On white

4.23
#796CD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#796CD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CD9
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CD9#FFFFFF#000000##000000
##796CD91.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C7EDD
Deuteranopia (green-blind)
#3978D7
Tritanopia (blue-blind)
#5B8398
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #796cd9;
/* rgb */ color: rgb(121, 108, 217);
/* oklch */ color: oklch(59.6% 0.161 285.9);
Tailwind
colors: {
  custom: {
    50: '#a596e5',
    500: '#796cd9',
    950: '#000000',
  },
}
SCSS
$custom: #796cd9;
$custom-light: #a596e5;
$custom-dark: #000000;
JSON
{
  "hex": "#796cd9",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 217
  },
  "hsl": {
    "h": 247.156,
    "s": 58.919,
    "l": 63.725
  },
  "oklch": {
    "l": 0.59579,
    "c": 0.16088,
    "h": 285.9
  },
  "luminance": 0.198
}

Semantic roles & 50–950 ramp

primary
#796CD9
secondary
#DFE4BD
accent
#C71FB3
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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