#796CD6#796CD6

#796CD6 is a mid, vivid blue. Relative luminance 0.196; OKLCH L 59.4% C 0.157 H 286.2°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#796CD6
RGBrgb(121, 108, 214)
HSLhsl(247, 56%, 63%)
HSVhsv(247, 50%, 84%)
CMYKcmyk(43.5%, 49.5%, 0%, 16.1%)
CIE-LABlab(51.43, 31.32, -53.05)
CIE-LCHlch(51.43, 61.61, 300.56°)
OKLaboklab(59.39% 0.0437 -0.1506)
OKLCHoklch(59.39% 0.157 286.2)
XYZxyz(25.3818, 19.6441, 66.0596)
Luminance0.1965 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CD6 #C9D66C
analogous
#6C94D6 #796CD6 #AE6CD6
triadic
#796CD6 #D6796C #6CD679
tetradic
#796CD6 #D66C94 #C9D66C #6CD6AE
square
#796CD6 #D66C94 #C9D66C #6CD6AE
split-complementary
#796CD6 #D6AE6C #94D66C
monochromatic
#392C9C #4D3CC9 #796CD6 #A59CE3 #D0CCF1

Accessibility & contrast

On white

4.26
#796CD6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#796CD6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CD6
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CD6#FFFFFF#000000##000000
##796CD61.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F7DDA
Deuteranopia (green-blind)
#3D78D4
Tritanopia (blue-blind)
#5D8297
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #796cd6;
/* rgb */ color: rgb(121, 108, 214);
/* oklch */ color: oklch(59.4% 0.157 286.2);
Tailwind
colors: {
  custom: {
    50: '#a596e3',
    500: '#796cd6',
    950: '#000000',
  },
}
SCSS
$custom: #796cd6;
$custom-light: #a596e3;
$custom-dark: #000000;
JSON
{
  "hex": "#796cd6",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 214
  },
  "hsl": {
    "h": 247.358,
    "s": 56.383,
    "l": 63.137
  },
  "oklch": {
    "l": 0.5939,
    "c": 0.15681,
    "h": 286.2
  },
  "luminance": 0.19645
}

Semantic roles & 50–950 ramp

primary
#796CD6
secondary
#DDE2BC
accent
#C422B0
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100D15
muted
#7F7E84

Preview Lab

Preview with #796CD6

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

Preview Lab → · Contrast checker → · Palette generator →

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