#797BC6#797BC6

#797BC6 is a mid, moderate blue. Relative luminance 0.223; OKLCH L 61.3% C 0.113 H 281.4°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#797BC6
RGBrgb(121, 123, 198)
HSLhsl(238, 40%, 63%)
HSVhsv(238, 39%, 78%)
CMYKcmyk(38.9%, 37.9%, 0%, 22.4%)
CIE-LABlab(54.35, 17.80, -39.32)
CIE-LCHlch(54.35, 43.16, 294.35°)
OKLaboklab(61.33% 0.0222 -0.1104)
OKLCHoklch(61.33% 0.113 281.4)
XYZxyz(25.1582, 22.3071, 56.3953)
Luminance0.2231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BC6 #C6C479
analogous
#79A1C6 #797BC6 #9E79C6
triadic
#797BC6 #C6797B #7BC679
tetradic
#797BC6 #C679A1 #C6C479 #79C69E
square
#797BC6 #C679A1 #C6C479 #79C69E
split-complementary
#797BC6 #C69E79 #A1C679
monochromatic
#3B3D8A #4E51B4 #797BC6 #A4A5D8 #CFD0EB

Accessibility & contrast

On white

3.85
#797BC6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#797BC6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BC6
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BC6#FFFFFF#000000##000000
##797BC61.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6285C9
Deuteranopia (green-blind)
#5E7FC4
Tritanopia (blue-blind)
#638A97
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797bc6;
/* rgb */ color: rgb(121, 123, 198);
/* oklch */ color: oklch(61.3% 0.113 281.4);
Tailwind
colors: {
  custom: {
    50: '#a3a1d7',
    500: '#797bc6',
    950: '#000000',
  },
}
SCSS
$custom: #797bc6;
$custom-light: #a3a1d7;
$custom-dark: #000000;
JSON
{
  "hex": "#797bc6",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 198
  },
  "hsl": {
    "h": 238.442,
    "s": 40.314,
    "l": 62.549
  },
  "oklch": {
    "l": 0.61326,
    "c": 0.11262,
    "h": 281.4
  },
  "luminance": 0.22308
}

Semantic roles & 50–950 ramp

primary
#797BC6
secondary
#DBDBBF
accent
#B032B3
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0E14
muted
#7F7E83

Preview Lab

Preview with #797BC6

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

Preview Lab → · Contrast checker → · Palette generator →

#797BC6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva