#797EA7#797EA7

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

Color values

HEX#797EA7
RGBrgb(121, 126, 167)
HSLhsl(233, 21%, 56%)
HSVhsv(233, 28%, 65%)
CMYKcmyk(27.5%, 24.6%, 0%, 34.5%)
CIE-LABlab(53.79, 7.66, -22.41)
CIE-LCHlch(53.79, 23.68, 288.87°)
OKLaboklab(60.44% 0.0097 -0.0618)
OKLCHoklch(60.44% 0.063 278.9)
XYZxyz(22.3192, 21.7761, 39.5790)
Luminance0.2178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EA7 #A7A279
analogous
#7995A7 #797EA7 #8B79A7
triadic
#797EA7 #A7797E #7EA779
tetradic
#797EA7 #A77995 #A7A279 #79A78B
square
#797EA7 #A77995 #A7A279 #79A78B
split-complementary
#797EA7 #A78B79 #95A779
monochromatic
#424564 #5A5F89 #797EA7 #9EA2BF #C3C5D8

Accessibility & contrast

On white

3.92
#797EA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#797EA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EA7
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EA7#FFFFFF#000000##000000
##797EA71.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7282A9
Deuteranopia (green-blind)
#707FA6
Tritanopia (blue-blind)
#6E858C
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797ea7;
/* rgb */ color: rgb(121, 126, 167);
/* oklch */ color: oklch(60.4% 0.063 278.9);
Tailwind
colors: {
  custom: {
    50: '#a0a3c1',
    500: '#797ea7',
    950: '#000000',
  },
}
SCSS
$custom: #797ea7;
$custom-light: #a0a3c1;
$custom-dark: #000000;
JSON
{
  "hex": "#797ea7",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 167
  },
  "hsl": {
    "h": 233.478,
    "s": 20.721,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60443,
    "c": 0.06254,
    "h": 278.9
  },
  "luminance": 0.21777
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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