#797EAB#797EAB

#797EAB is a mid, moderate blue. Relative luminance 0.219; OKLCH L 60.6% C 0.069 H 279.2°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#797EAB
RGBrgb(121, 126, 171)
HSLhsl(234, 23%, 57%)
HSVhsv(234, 29%, 67%)
CMYKcmyk(29.2%, 26.3%, 0%, 32.9%)
CIE-LABlab(53.95, 8.69, -24.47)
CIE-LCHlch(53.95, 25.97, 289.55°)
OKLaboklab(60.62% 0.011 -0.0676)
OKLCHoklch(60.62% 0.069 279.2)
XYZxyz(22.6947, 21.9263, 41.5567)
Luminance0.2193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EAB #ABA679
analogous
#7997AB #797EAB #8D79AB
triadic
#797EAB #AB797E #7EAB79
tetradic
#797EAB #AB7997 #ABA679 #79AB8D
square
#797EAB #AB7997 #ABA679 #79AB8D
split-complementary
#797EAB #AB8D79 #97AB79
monochromatic
#414568 #595E8E #797EAB #9FA2C3 #C4C6DA

Accessibility & contrast

On white

3.90
#797EAB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#797EAB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EAB
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EAB#FFFFFF#000000##000000
##797EAB1.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7183AD
Deuteranopia (green-blind)
#6E7FAA
Tritanopia (blue-blind)
#6C868E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797eab;
/* rgb */ color: rgb(121, 126, 171);
/* oklch */ color: oklch(60.6% 0.069 279.2);
Tailwind
colors: {
  custom: {
    50: '#a1a3c4',
    500: '#797eab',
    950: '#000000',
  },
}
SCSS
$custom: #797eab;
$custom-light: #a1a3c4;
$custom-dark: #000000;
JSON
{
  "hex": "#797eab",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 171
  },
  "hsl": {
    "h": 234,
    "s": 22.936,
    "l": 57.255
  },
  "oklch": {
    "l": 0.6062,
    "c": 0.06854,
    "h": 279.2
  },
  "luminance": 0.21927
}

Semantic roles & 50–950 ramp

primary
#797EAB
secondary
#CAC8B6
accent
#B768BF
background
#F9FAFC
surface
#F2F3F8
border
#CCCDD1
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #797EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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