#797EB6#797EB6

#797EB6 is a mid, moderate blue. Relative luminance 0.224; OKLCH L 61.1% C 0.085 H 279.6°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#797EB6
RGBrgb(121, 126, 182)
HSLhsl(235, 29%, 59%)
HSVhsv(235, 34%, 71%)
CMYKcmyk(33.5%, 30.8%, 0%, 28.6%)
CIE-LABlab(54.41, 11.60, -30.08)
CIE-LCHlch(54.41, 32.24, 291.08°)
OKLaboklab(61.13% 0.0142 -0.0837)
OKLCHoklch(61.13% 0.085 279.6)
XYZxyz(23.7872, 22.3633, 47.3101)
Luminance0.2236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EB6 #B6B179
analogous
#799DB6 #797EB6 #9379B6
triadic
#797EB6 #B6797E #7EB679
tetradic
#797EB6 #B6799D #B6B179 #79B693
square
#797EB6 #B6799D #B6B179 #79B693
split-complementary
#797EB6 #B69379 #9DB679
monochromatic
#404475 #555B9D #797EB6 #A1A4CC #C8CAE1

Accessibility & contrast

On white

3.84
#797EB6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#797EB6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EB6
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EB6#FFFFFF#000000##000000
##797EB61.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D84B8
Deuteranopia (green-blind)
#6A80B5
Tritanopia (blue-blind)
#698992
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797eb6;
/* rgb */ color: rgb(121, 126, 182);
/* oklch */ color: oklch(61.1% 0.085 279.6);
Tailwind
colors: {
  custom: {
    50: '#a1a3cc',
    500: '#797eb6',
    950: '#000000',
  },
}
SCSS
$custom: #797eb6;
$custom-light: #a1a3cc;
$custom-dark: #000000;
JSON
{
  "hex": "#797eb6",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 182
  },
  "hsl": {
    "h": 235.082,
    "s": 29.469,
    "l": 59.412
  },
  "oklch": {
    "l": 0.6113,
    "c": 0.08491,
    "h": 279.6
  },
  "luminance": 0.22364
}

Semantic roles & 50–950 ramp

primary
#797EB6
secondary
#D1CFBA
accent
#BE62C6
background
#FAFAFC
surface
#F3F3F8
border
#CDCDD1
text
#0F0F13
muted
#7F7F82

Preview Lab

Preview with #797EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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