#796DC7#796DC7

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

Color values

HEX#796DC7
RGBrgb(121, 109, 199)
HSLhsl(248, 45%, 60%)
HSVhsv(248, 45%, 78%)
CMYKcmyk(39.2%, 45.2%, 0%, 22%)
CIE-LABlab(50.83, 26.45, -45.45)
CIE-LCHlch(50.83, 52.59, 300.20°)
OKLaboklab(58.67% 0.0408 -0.1283)
OKLCHoklch(58.67% 0.135 287.6)
XYZxyz(23.6597, 19.1250, 56.4667)
Luminance0.1913 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DC7 #BBC76D
analogous
#6D8EC7 #796DC7 #A66DC7
triadic
#796DC7 #C7796D #6DC779
tetradic
#796DC7 #C76D8E #BBC76D #6DC7A6
square
#796DC7 #C76D8E #BBC76D #6DC7A6
split-complementary
#796DC7 #C7A66D #8EC76D
monochromatic
#3E3386 #5344B2 #796DC7 #A299D8 #CAC5E9

Accessibility & contrast

On white

4.35
#796DC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#796DC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796DC7
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796DC7#FFFFFF#000000##000000
##796DC71.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C7BCA
Deuteranopia (green-blind)
#4C77C5
Tritanopia (blue-blind)
#647F90
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #796dc7;
/* rgb */ color: rgb(121, 109, 199);
/* oklch */ color: oklch(58.7% 0.135 287.6);
Tailwind
colors: {
  custom: {
    50: '#a397d8',
    500: '#796dc7',
    950: '#000000',
  },
}
SCSS
$custom: #796dc7;
$custom-light: #a397d8;
$custom-dark: #000000;
JSON
{
  "hex": "#796dc7",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 199
  },
  "hsl": {
    "h": 248,
    "s": 44.554,
    "l": 60.392
  },
  "oklch": {
    "l": 0.58665,
    "c": 0.13464,
    "h": 287.6
  },
  "luminance": 0.19126
}

Semantic roles & 50–950 ramp

primary
#796DC7
secondary
#D5D9B7
accent
#B82EA5
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #796DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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