#796DC6#796DC6

#796DC6 is a mid, vivid blue. Relative luminance 0.191; OKLCH L 58.6% C 0.133 H 287.7°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#796DC6
RGBrgb(121, 109, 198)
HSLhsl(248, 44%, 60%)
HSVhsv(248, 45%, 78%)
CMYKcmyk(38.9%, 44.9%, 0%, 22.4%)
CIE-LABlab(50.78, 26.17, -44.97)
CIE-LCHlch(50.78, 52.03, 300.20°)
OKLaboklab(58.61% 0.0406 -0.1269)
OKLCHoklch(58.61% 0.133 287.7)
XYZxyz(23.5440, 19.0787, 55.8572)
Luminance0.1908 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796DC6 #BAC66D
analogous
#6D8DC6 #796DC6 #A56DC6
triadic
#796DC6 #C6796D #6DC679
tetradic
#796DC6 #C66D8D #BAC66D #6DC6A5
square
#796DC6 #C66D8D #BAC66D #6DC6A5
split-complementary
#796DC6 #C6A56D #8DC66D
monochromatic
#3F3485 #5445B1 #796DC6 #A199D7 #CAC5E8

Accessibility & contrast

On white

4.36
#796DC6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#796DC6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796DC6
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796DC6#FFFFFF#000000##000000
##796DC61.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #796dc6;
/* rgb */ color: rgb(121, 109, 198);
/* oklch */ color: oklch(58.6% 0.133 287.7);
Tailwind
colors: {
  custom: {
    50: '#a397d8',
    500: '#796dc6',
    950: '#000000',
  },
}
SCSS
$custom: #796dc6;
$custom-light: #a397d8;
$custom-dark: #000000;
JSON
{
  "hex": "#796dc6",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 198
  },
  "hsl": {
    "h": 248.09,
    "s": 43.842,
    "l": 60.196
  },
  "oklch": {
    "l": 0.58607,
    "c": 0.13325,
    "h": 287.7
  },
  "luminance": 0.19079
}

Semantic roles & 50–950 ramp

primary
#796DC6
secondary
#D4D8B6
accent
#B72FA5
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0D14
muted
#7F7E83

Preview Lab

Preview with #796DC6

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

Preview Lab → · Contrast checker → · Palette generator →

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