#797BA2#797BA2

#797BA2 is a mid, muted blue. Relative luminance 0.208; OKLCH L 59.6% C 0.059 H 282.1°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#797BA2
RGBrgb(121, 123, 162)
HSLhsl(237, 18%, 55%)
HSVhsv(237, 25%, 64%)
CMYKcmyk(25.3%, 24.1%, 0%, 36.5%)
CIE-LABlab(52.77, 8.16, -21.07)
CIE-LCHlch(52.77, 22.60, 291.17°)
OKLaboklab(59.59% 0.0125 -0.058)
OKLCHoklch(59.59% 0.059 282.1)
XYZxyz(21.4881, 20.8390, 37.0656)
Luminance0.2084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BA2 #A2A079
analogous
#798FA2 #797BA2 #8B79A2
triadic
#797BA2 #A2797B #7BA279
tetradic
#797BA2 #A2798F #A2A079 #79A28B
square
#797BA2 #A2798F #A2A079 #79A28B
split-complementary
#797BA2 #A28B79 #8FA279
monochromatic
#42435F #5B5D83 #797BA2 #9D9FBB #C1C2D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797BA2#FFFFFF#000000##000000
##797BA21.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)
#717FA4
Deuteranopia (green-blind)
#6F7DA1
Tritanopia (blue-blind)
#6F8288
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #797ba2;
/* rgb */ color: rgb(121, 123, 162);
/* oklch */ color: oklch(59.6% 0.059 282.1);
Tailwind
colors: {
  custom: {
    50: '#a0a1bd',
    500: '#797ba2',
    950: '#000000',
  },
}
SCSS
$custom: #797ba2;
$custom-light: #a0a1bd;
$custom-dark: #000000;
JSON
{
  "hex": "#797ba2",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 162
  },
  "hsl": {
    "h": 237.073,
    "s": 18.062,
    "l": 55.49
  },
  "oklch": {
    "l": 0.59589,
    "c": 0.05931,
    "h": 282.1
  },
  "luminance": 0.2084
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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