#797CA9#797CA9

#797CA9 is a mid, moderate blue. Relative luminance 0.213; OKLCH L 60.1% C 0.068 H 281.2°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#797CA9
RGBrgb(121, 124, 169)
HSLhsl(236, 22%, 57%)
HSVhsv(236, 28%, 66%)
CMYKcmyk(28.4%, 26.6%, 0%, 33.7%)
CIE-LABlab(53.32, 9.35, -24.28)
CIE-LCHlch(53.32, 26.02, 291.07°)
OKLaboklab(60.11% 0.0132 -0.0671)
OKLCHoklch(60.11% 0.068 281.2)
XYZxyz(22.2524, 21.3443, 40.4759)
Luminance0.2135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CA9 #A9A679
analogous
#7994A9 #797CA9 #8E79A9
triadic
#797CA9 #A9797C #7CA979
tetradic
#797CA9 #A97994 #A9A679 #79A98E
square
#797CA9 #A97994 #A9A679 #79A98E
split-complementary
#797CA9 #A98E79 #94A979
monochromatic
#424466 #595D8B #797CA9 #9EA0C1 #C4C5D9

Accessibility & contrast

On white

3.99
#797CA9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#797CA9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CA9
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CA9#FFFFFF#000000##000000
##797CA91.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F81AB
Deuteranopia (green-blind)
#6D7EA8
Tritanopia (blue-blind)
#6D848C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #797ca9;
/* rgb */ color: rgb(121, 124, 169);
/* oklch */ color: oklch(60.1% 0.068 281.2);
Tailwind
colors: {
  custom: {
    50: '#a1a1c2',
    500: '#797ca9',
    950: '#000000',
  },
}
SCSS
$custom: #797ca9;
$custom-light: #a1a1c2;
$custom-dark: #000000;
JSON
{
  "hex": "#797ca9",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 169
  },
  "hsl": {
    "h": 236.25,
    "s": 21.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.60109,
    "c": 0.06838,
    "h": 281.2
  },
  "luminance": 0.21345
}

Semantic roles & 50–950 ramp

primary
#797CA9
secondary
#C9C7B5
accent
#B969BE
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0F12
muted
#7E7E81

Preview Lab

Preview with #797CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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