#797CA6#797CA6

#797CA6 is a mid, moderate blue. Relative luminance 0.212; OKLCH L 60.0% C 0.064 H 281.1°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#797CA6
RGBrgb(121, 124, 166)
HSLhsl(236, 20%, 56%)
HSVhsv(236, 27%, 65%)
CMYKcmyk(27.1%, 25.3%, 0%, 34.9%)
CIE-LABlab(53.20, 8.58, -22.73)
CIE-LCHlch(53.20, 24.30, 290.69°)
OKLaboklab(59.98% 0.0123 -0.0627)
OKLCHoklch(59.98% 0.064 281.1)
XYZxyz(21.9740, 21.2329, 39.0096)
Luminance0.2123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CA6 #A6A379
analogous
#7993A6 #797CA6 #8D79A6
triadic
#797CA6 #A6797C #7CA679
tetradic
#797CA6 #A67993 #A6A379 #79A68D
square
#797CA6 #A67993 #A6A379 #79A68D
split-complementary
#797CA6 #A68D79 #93A679
monochromatic
#424463 #5A5D88 #797CA6 #9EA0BE #C3C4D7

Accessibility & contrast

On white

4.00
#797CA6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#797CA6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CA6
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CA6#FFFFFF#000000##000000
##797CA61.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7081A8
Deuteranopia (green-blind)
#6E7EA5
Tritanopia (blue-blind)
#6E848A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #797ca6;
/* rgb */ color: rgb(121, 124, 166);
/* oklch */ color: oklch(60.0% 0.064 281.1);
Tailwind
colors: {
  custom: {
    50: '#a0a1c0',
    500: '#797ca6',
    950: '#000000',
  },
}
SCSS
$custom: #797ca6;
$custom-light: #a0a1c0;
$custom-dark: #000000;
JSON
{
  "hex": "#797ca6",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 166
  },
  "hsl": {
    "h": 236,
    "s": 20.179,
    "l": 56.275
  },
  "oklch": {
    "l": 0.59976,
    "c": 0.06388,
    "h": 281.1
  },
  "luminance": 0.21233
}

Semantic roles & 50–950 ramp

primary
#797CA6
secondary
#C7C5B4
accent
#B76BBD
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0F12
muted
#7E7E81

Preview Lab

Preview with #797CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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