#797FA9#797FA9

#797FA9 is a mid, moderate blue. Relative luminance 0.221; OKLCH L 60.7% C 0.064 H 278.0°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#797FA9
RGBrgb(121, 127, 169)
HSLhsl(233, 22%, 57%)
HSVhsv(233, 28%, 66%)
CMYKcmyk(28.4%, 24.9%, 0%, 33.7%)
CIE-LABlab(54.14, 7.58, -23.02)
CIE-LCHlch(54.14, 24.24, 288.23°)
OKLaboklab(60.74% 0.0089 -0.0635)
OKLCHoklch(60.74% 0.064 278)
XYZxyz(22.6341, 22.1077, 40.6031)
Luminance0.2211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FA9 #A9A379
analogous
#7997A9 #797FA9 #8B79A9
triadic
#797FA9 #A9797F #7FA979
tetradic
#797FA9 #A97997 #A9A379 #79A98B
square
#797FA9 #A97997 #A9A379 #79A98B
split-complementary
#797FA9 #A98B79 #97A979
monochromatic
#424666 #59608B #797FA9 #9EA3C1 #C4C6D9

Accessibility & contrast

On white

3.87
#797FA9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#797FA9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FA9
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FA9#FFFFFF#000000##000000
##797FA91.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7383AB
Deuteranopia (green-blind)
#7080A8
Tritanopia (blue-blind)
#6D878D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797fa9;
/* rgb */ color: rgb(121, 127, 169);
/* oklch */ color: oklch(60.7% 0.064 278.0);
Tailwind
colors: {
  custom: {
    50: '#a0a4c2',
    500: '#797fa9',
    950: '#000000',
  },
}
SCSS
$custom: #797fa9;
$custom-light: #a0a4c2;
$custom-dark: #000000;
JSON
{
  "hex": "#797fa9",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 169
  },
  "hsl": {
    "h": 232.5,
    "s": 21.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.60743,
    "c": 0.06414,
    "h": 278
  },
  "luminance": 0.22108
}

Semantic roles & 50–950 ramp

primary
#797FA9
secondary
#C9C6B5
accent
#B469BE
background
#F9FAFB
surface
#F2F3F7
border
#CCCDD0
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #797FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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