#796FC7#796FC7

#796FC7 is a mid, vivid blue. Relative luminance 0.196; OKLCH L 59.0% C 0.132 H 286.8°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#796FC7
RGBrgb(121, 111, 199)
HSLhsl(247, 44%, 61%)
HSVhsv(247, 44%, 78%)
CMYKcmyk(39.2%, 44.2%, 0%, 22%)
CIE-LABlab(51.33, 25.26, -44.66)
CIE-LCHlch(51.33, 51.31, 299.49°)
OKLaboklab(59.04% 0.0382 -0.126)
OKLCHoklch(59.04% 0.132 286.8)
XYZxyz(23.8755, 19.5566, 56.5386)
Luminance0.1956 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796FC7 #BDC76F
analogous
#6F91C7 #796FC7 #A56FC7
triadic
#796FC7 #C7796F #6FC779
tetradic
#796FC7 #C76F91 #BDC76F #6FC7A5
square
#796FC7 #C76F91 #BDC76F #6FC7A5
split-complementary
#796FC7 #C7A56F #91C76F
monochromatic
#3E3587 #5246B3 #796FC7 #A29BD8 #CBC7E9

Accessibility & contrast

On white

4.28
#796FC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#796FC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796FC7
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796FC7#FFFFFF#000000##000000
##796FC71.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#507DCA
Deuteranopia (green-blind)
#4E78C5
Tritanopia (blue-blind)
#638091
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #796fc7;
/* rgb */ color: rgb(121, 111, 199);
/* oklch */ color: oklch(59.0% 0.132 286.8);
Tailwind
colors: {
  custom: {
    50: '#a398d8',
    500: '#796fc7',
    950: '#000000',
  },
}
SCSS
$custom: #796fc7;
$custom-light: #a398d8;
$custom-dark: #000000;
JSON
{
  "hex": "#796fc7",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 199
  },
  "hsl": {
    "h": 246.818,
    "s": 44,
    "l": 60.784
  },
  "oklch": {
    "l": 0.59043,
    "c": 0.13166,
    "h": 286.8
  },
  "luminance": 0.19557
}

Semantic roles & 50–950 ramp

primary
#796FC7
secondary
#D6DAB8
accent
#B72EA8
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #796FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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