#797BA7#797BA7

#797BA7 is a mid, moderate blue. Relative luminance 0.210; OKLCH L 59.8% C 0.067 H 282.2°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#797BA7
RGBrgb(121, 123, 167)
HSLhsl(237, 21%, 56%)
HSVhsv(237, 28%, 65%)
CMYKcmyk(27.5%, 26.3%, 0%, 34.5%)
CIE-LABlab(52.97, 9.43, -23.67)
CIE-LCHlch(52.97, 25.48, 291.72°)
OKLaboklab(59.81% 0.0141 -0.0653)
OKLCHoklch(59.81% 0.067 282.2)
XYZxyz(21.9414, 21.0204, 39.4530)
Luminance0.2102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BA7 #A7A579
analogous
#7992A7 #797BA7 #8E79A7
triadic
#797BA7 #A7797B #7BA779
tetradic
#797BA7 #A77992 #A7A579 #79A78E
square
#797BA7 #A77992 #A7A579 #79A78E
split-complementary
#797BA7 #A78E79 #92A779
monochromatic
#424364 #5A5C89 #797BA7 #9E9FBF #C3C4D8

Accessibility & contrast

On white

4.04
#797BA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#797BA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BA7
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BA7#FFFFFF#000000##000000
##797BA71.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F80A9
Deuteranopia (green-blind)
#6D7DA6
Tritanopia (blue-blind)
#6E838A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #797ba7;
/* rgb */ color: rgb(121, 123, 167);
/* oklch */ color: oklch(59.8% 0.067 282.2);
Tailwind
colors: {
  custom: {
    50: '#a0a1c1',
    500: '#797ba7',
    950: '#000000',
  },
}
SCSS
$custom: #797ba7;
$custom-light: #a0a1c1;
$custom-dark: #000000;
JSON
{
  "hex": "#797ba7",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 167
  },
  "hsl": {
    "h": 237.391,
    "s": 20.721,
    "l": 56.471
  },
  "oklch": {
    "l": 0.59809,
    "c": 0.06684,
    "h": 282.2
  },
  "luminance": 0.21021
}

Semantic roles & 50–950 ramp

primary
#797BA7
secondary
#C7C7B4
accent
#BA6BBD
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0E12
muted
#7E7E81

Preview Lab

Preview with #797BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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