#797EB2#797EB2

#797EB2 is a mid, moderate blue. Relative luminance 0.222; OKLCH L 60.9% C 0.079 H 279.5°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#797EB2
RGBrgb(121, 126, 178)
HSLhsl(235, 27%, 59%)
HSVhsv(235, 32%, 70%)
CMYKcmyk(32%, 29.2%, 0%, 30.2%)
CIE-LABlab(54.24, 10.53, -28.05)
CIE-LCHlch(54.24, 29.97, 290.57°)
OKLaboklab(60.94% 0.0131 -0.0779)
OKLCHoklch(60.94% 0.079 279.5)
XYZxyz(23.3797, 22.2003, 45.1641)
Luminance0.2220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EB2 #B2AD79
analogous
#799AB2 #797EB2 #9079B2
triadic
#797EB2 #B2797E #7EB279
tetradic
#797EB2 #B2799A #B2AD79 #79B290
square
#797EB2 #B2799A #B2AD79 #79B290
split-complementary
#797EB2 #B29079 #9AB279
monochromatic
#404570 #575C97 #797EB2 #A0A3C8 #C7C9DF

Accessibility & contrast

On white

3.86
#797EB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#797EB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EB2
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EB2#FFFFFF#000000##000000
##797EB21.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F84B4
Deuteranopia (green-blind)
#6B80B1
Tritanopia (blue-blind)
#6A8890
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797eb2;
/* rgb */ color: rgb(121, 126, 178);
/* oklch */ color: oklch(60.9% 0.079 279.5);
Tailwind
colors: {
  custom: {
    50: '#a1a3c9',
    500: '#797eb2',
    950: '#000000',
  },
}
SCSS
$custom: #797eb2;
$custom-light: #a1a3c9;
$custom-dark: #000000;
JSON
{
  "hex": "#797eb2",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 178
  },
  "hsl": {
    "h": 234.737,
    "s": 27.014,
    "l": 58.627
  },
  "oklch": {
    "l": 0.60941,
    "c": 0.07897,
    "h": 279.5
  },
  "luminance": 0.22201
}

Semantic roles & 50–950 ramp

primary
#797EB2
secondary
#CFCDB8
accent
#BB64C3
background
#FAFAFC
surface
#F3F3F8
border
#CDCDD1
text
#0F0F13
muted
#7F7F82

Preview Lab

Preview with #797EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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