#797AA5#797AA5

#797AA5 is a mid, moderate blue. Relative luminance 0.207; OKLCH L 59.5% C 0.065 H 283.2°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#797AA5
RGBrgb(121, 122, 165)
HSLhsl(239, 20%, 56%)
HSVhsv(239, 27%, 65%)
CMYKcmyk(26.7%, 26.1%, 0%, 35.3%)
CIE-LABlab(52.62, 9.51, -23.05)
CIE-LCHlch(52.62, 24.93, 292.42°)
OKLaboklab(59.51% 0.0149 -0.0636)
OKLCHoklch(59.51% 0.065 283.2)
XYZxyz(21.6345, 20.7002, 38.4457)
Luminance0.2070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AA5 #A5A479
analogous
#7990A5 #797AA5 #8E79A5
triadic
#797AA5 #A5797A #7AA579
tetradic
#797AA5 #A57990 #A5A479 #79A58E
square
#797AA5 #A57990 #A5A479 #79A58E
split-complementary
#797AA5 #A58E79 #90A579
monochromatic
#424262 #5A5B86 #797AA5 #9E9EBE #C2C3D6

Accessibility & contrast

On white

4.09
#797AA5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#797AA5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797AA5
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797AA5#FFFFFF#000000##000000
##797AA51.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E7FA7
Deuteranopia (green-blind)
#6D7CA4
Tritanopia (blue-blind)
#6F8289
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #797aa5;
/* rgb */ color: rgb(121, 122, 165);
/* oklch */ color: oklch(59.5% 0.065 283.2);
Tailwind
colors: {
  custom: {
    50: '#a0a0bf',
    500: '#797aa5',
    950: '#000000',
  },
}
SCSS
$custom: #797aa5;
$custom-light: #a0a0bf;
$custom-dark: #000000;
JSON
{
  "hex": "#797aa5",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 165
  },
  "hsl": {
    "h": 238.636,
    "s": 19.643,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5951,
    "c": 0.0653,
    "h": 283.2
  },
  "luminance": 0.20701
}

Semantic roles & 50–950 ramp

primary
#797AA5
secondary
#C6C6B4
accent
#BA6CBC
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0E12
muted
#7E7E81

Preview Lab

Preview with #797AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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