#796BDC#796BDC

#796BDC is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.6% C 0.166 H 285.8°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#796BDC
RGBrgb(121, 107, 220)
HSLhsl(247, 62%, 64%)
HSVhsv(247, 51%, 86%)
CMYKcmyk(45%, 51.4%, 0%, 13.7%)
CIE-LABlab(51.55, 33.65, -56.26)
CIE-LCHlch(51.55, 65.56, 300.89°)
OKLaboklab(59.59% 0.0454 -0.16)
OKLCHoklch(59.59% 0.166 285.8)
XYZxyz(26.0574, 19.7465, 70.1348)
Luminance0.1975 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BDC #CEDC6B
analogous
#6B96DC #796BDC #B26BDC
triadic
#796BDC #DC796B #6BDC79
tetradic
#796BDC #DC6B96 #CEDC6B #6BDCB2
square
#796BDC #DC6B96 #CEDC6B #6BDCB2
split-complementary
#796BDC #DCB26B #96DC6B
monochromatic
#3727A5 #4C3AD0 #796BDC #A69CE8 #D3CEF3

Accessibility & contrast

On white

4.24
#796BDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#796BDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BDC
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BDC#FFFFFF#000000##000000
##796BDC1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#367EE0
Deuteranopia (green-blind)
#3378D9
Tritanopia (blue-blind)
#598399
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #796bdc;
/* rgb */ color: rgb(121, 107, 220);
/* oklch */ color: oklch(59.6% 0.166 285.8);
Tailwind
colors: {
  custom: {
    50: '#a595e7',
    500: '#796bdc',
    950: '#000000',
  },
}
SCSS
$custom: #796bdc;
$custom-light: #a595e7;
$custom-dark: #000000;
JSON
{
  "hex": "#796bdc",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 220
  },
  "hsl": {
    "h": 247.434,
    "s": 61.749,
    "l": 64.118
  },
  "oklch": {
    "l": 0.59592,
    "c": 0.16634,
    "h": 285.8
  },
  "luminance": 0.19748
}

Semantic roles & 50–950 ramp

primary
#796BDC
secondary
#E0E5BE
accent
#C91CB4
background
#FAF9FE
surface
#F4F1FD
border
#CECBD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796BDC

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

Preview Lab → · Contrast checker → · Palette generator →

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