#797BA3#797BA3

#797BA3 is a mid, moderate blue. Relative luminance 0.209; OKLCH L 59.6% C 0.061 H 282.2°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#797BA3
RGBrgb(121, 123, 163)
HSLhsl(237, 19%, 56%)
HSVhsv(237, 26%, 64%)
CMYKcmyk(25.8%, 24.5%, 0%, 36.1%)
CIE-LABlab(52.81, 8.41, -21.59)
CIE-LCHlch(52.81, 23.17, 291.28°)
OKLaboklab(59.63% 0.0128 -0.0594)
OKLCHoklch(59.63% 0.061 282.2)
XYZxyz(21.5773, 20.8747, 37.5356)
Luminance0.2087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BA3 #A3A179
analogous
#7990A3 #797BA3 #8C79A3
triadic
#797BA3 #A3797B #7BA379
tetradic
#797BA3 #A37990 #A3A179 #79A38C
square
#797BA3 #A37990 #A3A179 #79A38C
split-complementary
#797BA3 #A38C79 #90A379
monochromatic
#424360 #5B5D84 #797BA3 #9D9FBC #C2C2D5

Accessibility & contrast

On white

4.06
#797BA3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#797BA3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BA3
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BA3#FFFFFF#000000##000000
##797BA31.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#707FA5
Deuteranopia (green-blind)
#6E7DA2
Tritanopia (blue-blind)
#6F8289
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #797ba3;
/* rgb */ color: rgb(121, 123, 163);
/* oklch */ color: oklch(59.6% 0.061 282.2);
Tailwind
colors: {
  custom: {
    50: '#a0a1be',
    500: '#797ba3',
    950: '#000000',
  },
}
SCSS
$custom: #797ba3;
$custom-light: #a0a1be;
$custom-dark: #000000;
JSON
{
  "hex": "#797ba3",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 163
  },
  "hsl": {
    "h": 237.143,
    "s": 18.584,
    "l": 55.686
  },
  "oklch": {
    "l": 0.59633,
    "c": 0.06081,
    "h": 282.2
  },
  "luminance": 0.20875
}

Semantic roles & 50–950 ramp

primary
#797BA3
secondary
#C5C4B3
accent
#B76DBB
background
#F9F9FB
surface
#F2F2F6
border
#CCCCD0
text
#0F0E12
muted
#7E7E81

Preview Lab

Preview with #797BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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