#796FC4#796FC4

#796FC4 is a mid, vivid blue. Relative luminance 0.194; OKLCH L 58.9% C 0.127 H 287.2°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#796FC4
RGBrgb(121, 111, 196)
HSLhsl(247, 42%, 60%)
HSVhsv(247, 43%, 77%)
CMYKcmyk(38.3%, 43.4%, 0%, 23.1%)
CIE-LABlab(51.17, 24.42, -43.20)
CIE-LCHlch(51.17, 49.62, 299.48°)
OKLaboklab(58.87% 0.0377 -0.1217)
OKLCHoklch(58.87% 0.127 287.2)
XYZxyz(23.5307, 19.4186, 54.7222)
Luminance0.1942 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FC4 #BAC46F
analogous
#6F8FC4 #796FC4 #A46FC4
triadic
#796FC4 #C4796F #6FC479
tetradic
#796FC4 #C46F8F #BAC46F #6FC4A4
square
#796FC4 #C46F8F #BAC46F #6FC4A4
split-complementary
#796FC4 #C4A46F #8FC46F
monochromatic
#3F3683 #5447AE #796FC4 #A19AD6 #CAC6E8

Accessibility & contrast

On white

4.30
#796FC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#796FC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FC4
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FC4#FFFFFF#000000##000000
##796FC41.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#527CC7
Deuteranopia (green-blind)
#5078C2
Tritanopia (blue-blind)
#658090
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #796fc4;
/* rgb */ color: rgb(121, 111, 196);
/* oklch */ color: oklch(58.9% 0.127 287.2);
Tailwind
colors: {
  custom: {
    50: '#a398d6',
    500: '#796fc4',
    950: '#000000',
  },
}
SCSS
$custom: #796fc4;
$custom-light: #a398d6;
$custom-dark: #000000;
JSON
{
  "hex": "#796fc4",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 196
  },
  "hsl": {
    "h": 247.059,
    "s": 41.872,
    "l": 60.196
  },
  "oklch": {
    "l": 0.58871,
    "c": 0.12743,
    "h": 287.2
  },
  "luminance": 0.19419
}

Semantic roles & 50–950 ramp

primary
#796FC4
secondary
#D4D8B7
accent
#B531A5
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #796FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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