#796EC4#796EC4

#796EC4 is a mid, vivid blue. Relative luminance 0.192; OKLCH L 58.7% C 0.129 H 287.6°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#796EC4
RGBrgb(121, 110, 196)
HSLhsl(248, 42%, 60%)
HSVhsv(248, 44%, 77%)
CMYKcmyk(38.3%, 43.9%, 0%, 23.1%)
CIE-LABlab(50.92, 25.01, -43.59)
CIE-LCHlch(50.92, 50.26, 299.85°)
OKLaboklab(58.68% 0.039 -0.1229)
OKLCHoklch(58.68% 0.129 287.6)
XYZxyz(23.4221, 19.2016, 54.6861)
Luminance0.1920 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796EC4 #B9C46E
analogous
#6E8EC4 #796EC4 #A46EC4
triadic
#796EC4 #C4796E #6EC479
tetradic
#796EC4 #C46E8E #B9C46E #6EC4A4
square
#796EC4 #C46E8E #B9C46E #6EC4A4
split-complementary
#796EC4 #C4A46E #8EC46E
monochromatic
#3F3583 #5447AE #796EC4 #A199D6 #C9C5E7

Accessibility & contrast

On white

4.34
#796EC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#796EC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796EC4
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796EC4#FFFFFF#000000##000000
##796EC41.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#507BC7
Deuteranopia (green-blind)
#4F77C2
Tritanopia (blue-blind)
#657F8F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #796ec4;
/* rgb */ color: rgb(121, 110, 196);
/* oklch */ color: oklch(58.7% 0.129 287.6);
Tailwind
colors: {
  custom: {
    50: '#a397d6',
    500: '#796ec4',
    950: '#000000',
  },
}
SCSS
$custom: #796ec4;
$custom-light: #a397d6;
$custom-dark: #000000;
JSON
{
  "hex": "#796ec4",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 196
  },
  "hsl": {
    "h": 247.674,
    "s": 42.157,
    "l": 60
  },
  "oklch": {
    "l": 0.58681,
    "c": 0.12893,
    "h": 287.6
  },
  "luminance": 0.19202
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #796EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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