#797BAE#797BAE

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

Color values

HEX#797BAE
RGBrgb(121, 123, 174)
HSLhsl(238, 25%, 58%)
HSVhsv(238, 30%, 68%)
CMYKcmyk(30.5%, 29.3%, 0%, 31.8%)
CIE-LABlab(53.26, 11.25, -27.27)
CIE-LCHlch(53.26, 29.50, 292.42°)
OKLaboklab(60.13% 0.0162 -0.0756)
OKLCHoklch(60.13% 0.077 282.1)
XYZxyz(22.6061, 21.2862, 42.9538)
Luminance0.2129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BAE #AEAC79
analogous
#7995AE #797BAE #9179AE
triadic
#797BAE #AE797B #7BAE79
tetradic
#797BAE #AE7995 #AEAC79 #79AE91
square
#797BAE #AE7995 #AEAC79 #79AE91
split-complementary
#797BAE #AE9179 #95AE79
monochromatic
#41436C #585A92 #797BAE #9FA1C5 #C5C6DC

Accessibility & contrast

On white

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

On black

5.26
#797BAE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BAE
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BAE#FFFFFF#000000##000000
##797BAE1.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C81B0
Deuteranopia (green-blind)
#6A7DAD
Tritanopia (blue-blind)
#6C848D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #797bae;
/* rgb */ color: rgb(121, 123, 174);
/* oklch */ color: oklch(60.1% 0.077 282.1);
Tailwind
colors: {
  custom: {
    50: '#a1a1c6',
    500: '#797bae',
    950: '#000000',
  },
}
SCSS
$custom: #797bae;
$custom-light: #a1a1c6;
$custom-dark: #000000;
JSON
{
  "hex": "#797bae",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 174
  },
  "hsl": {
    "h": 237.736,
    "s": 24.651,
    "l": 57.843
  },
  "oklch": {
    "l": 0.60129,
    "c": 0.07732,
    "h": 282.1
  },
  "luminance": 0.21287
}

Semantic roles & 50–950 ramp

primary
#797BAE
secondary
#CCCBB7
accent
#BE67C1
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0E13
muted
#7F7E82

Preview Lab

Preview with #797BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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