#796DC4#796DC4

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

Color values

HEX#796DC4
RGBrgb(121, 109, 196)
HSLhsl(248, 42%, 60%)
HSVhsv(248, 44%, 77%)
CMYKcmyk(38.3%, 44.4%, 0%, 23.1%)
CIE-LABlab(50.67, 25.61, -43.99)
CIE-LCHlch(50.67, 50.90, 300.21°)
OKLaboklab(58.49% 0.0403 -0.124)
OKLCHoklch(58.49% 0.13 288)
XYZxyz(23.3149, 18.9870, 54.6503)
Luminance0.1899 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DC4 #B8C46D
analogous
#6D8DC4 #796DC4 #A56DC4
triadic
#796DC4 #C4796D #6DC479
tetradic
#796DC4 #C46D8D #B8C46D #6DC4A5
square
#796DC4 #C46D8D #B8C46D #6DC4A5
split-complementary
#796DC4 #C4A56D #8DC46D
monochromatic
#3F3582 #5446AE #796DC4 #A199D6 #C9C4E7

Accessibility & contrast

On white

4.38
#796DC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#796DC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796DC4
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796DC4#FFFFFF#000000##000000
##796DC41.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E7BC7
Deuteranopia (green-blind)
#4E76C2
Tritanopia (blue-blind)
#657E8F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #796dc4;
/* rgb */ color: rgb(121, 109, 196);
/* oklch */ color: oklch(58.5% 0.130 288.0);
Tailwind
colors: {
  custom: {
    50: '#a397d6',
    500: '#796dc4',
    950: '#000000',
  },
}
SCSS
$custom: #796dc4;
$custom-light: #a397d6;
$custom-dark: #000000;
JSON
{
  "hex": "#796dc4",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 196
  },
  "hsl": {
    "h": 248.276,
    "s": 42.439,
    "l": 59.804
  },
  "oklch": {
    "l": 0.58491,
    "c": 0.13044,
    "h": 288
  },
  "luminance": 0.18988
}

Semantic roles & 50–950 ramp

primary
#796DC4
secondary
#D3D7B6
accent
#D256C1
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #796DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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