#797EAA#797EAA

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

Color values

HEX#797EAA
RGBrgb(121, 126, 170)
HSLhsl(234, 22%, 57%)
HSVhsv(234, 29%, 67%)
CMYKcmyk(28.8%, 25.9%, 0%, 33.3%)
CIE-LABlab(53.91, 8.43, -23.96)
CIE-LCHlch(53.91, 25.40, 289.39°)
OKLaboklab(60.58% 0.0107 -0.0662)
OKLCHoklch(60.58% 0.067 279.2)
XYZxyz(22.5998, 21.8883, 41.0566)
Luminance0.2189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EAA #AAA579
analogous
#7996AA #797EAA #8D79AA
triadic
#797EAA #AA797E #7EAA79
tetradic
#797EAA #AA7996 #AAA579 #79AA8D
square
#797EAA #AA7996 #AAA579 #79AA8D
split-complementary
#797EAA #AA8D79 #96AA79
monochromatic
#414567 #595E8D #797EAA #9EA2C2 #C4C6DA

Accessibility & contrast

On white

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

On black

5.38
#797EAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EAA
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EAA#FFFFFF#000000##000000
##797EAA1.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7183AC
Deuteranopia (green-blind)
#6F7FA9
Tritanopia (blue-blind)
#6D868D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797eaa;
/* rgb */ color: rgb(121, 126, 170);
/* oklch */ color: oklch(60.6% 0.067 279.2);
Tailwind
colors: {
  custom: {
    50: '#a1a3c3',
    500: '#797eaa',
    950: '#000000',
  },
}
SCSS
$custom: #797eaa;
$custom-light: #a1a3c3;
$custom-dark: #000000;
JSON
{
  "hex": "#797eaa",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 170
  },
  "hsl": {
    "h": 233.878,
    "s": 22.374,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60576,
    "c": 0.06704,
    "h": 279.2
  },
  "luminance": 0.21889
}

Semantic roles & 50–950 ramp

primary
#797EAA
secondary
#C9C7B5
accent
#B669BF
background
#F9FAFC
surface
#F2F3F8
border
#CCCDD1
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #797EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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