#797EA6#797EA6

#797EA6 is a mid, moderate blue. Relative luminance 0.217; OKLCH L 60.4% C 0.061 H 278.9°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#797EA6
RGBrgb(121, 126, 166)
HSLhsl(233, 20%, 56%)
HSVhsv(233, 27%, 65%)
CMYKcmyk(27.1%, 24.1%, 0%, 34.9%)
CIE-LABlab(53.75, 7.40, -21.89)
CIE-LCHlch(53.75, 23.11, 288.69°)
OKLaboklab(60.4% 0.0094 -0.0603)
OKLCHoklch(60.4% 0.061 278.9)
XYZxyz(22.2271, 21.7393, 39.0940)
Luminance0.2174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EA6 #A6A179
analogous
#7995A6 #797EA6 #8B79A6
triadic
#797EA6 #A6797E #7EA679
tetradic
#797EA6 #A67995 #A6A179 #79A68B
square
#797EA6 #A67995 #A6A179 #79A68B
split-complementary
#797EA6 #A68B79 #95A679
monochromatic
#424563 #5A5F88 #797EA6 #9EA1BE #C3C5D7

Accessibility & contrast

On white

3.93
#797EA6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#797EA6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EA6
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EA6#FFFFFF#000000##000000
##797EA61.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7382A8
Deuteranopia (green-blind)
#707FA5
Tritanopia (blue-blind)
#6E858C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797ea6;
/* rgb */ color: rgb(121, 126, 166);
/* oklch */ color: oklch(60.4% 0.061 278.9);
Tailwind
colors: {
  custom: {
    50: '#a0a3c0',
    500: '#797ea6',
    950: '#000000',
  },
}
SCSS
$custom: #797ea6;
$custom-light: #a0a3c0;
$custom-dark: #000000;
JSON
{
  "hex": "#797ea6",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 166
  },
  "hsl": {
    "h": 233.333,
    "s": 20.179,
    "l": 56.275
  },
  "oklch": {
    "l": 0.604,
    "c": 0.06104,
    "h": 278.9
  },
  "luminance": 0.2174
}

Semantic roles & 50–950 ramp

primary
#797EA6
secondary
#C7C5B4
accent
#B46BBD
background
#F9FAFB
surface
#F2F3F7
border
#CCCDD0
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #797EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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