#797CAA#797CAA

#797CAA is a mid, moderate blue. Relative luminance 0.214; OKLCH L 60.2% C 0.070 H 281.2°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#797CAA
RGBrgb(121, 124, 170)
HSLhsl(236, 22%, 57%)
HSVhsv(236, 29%, 67%)
CMYKcmyk(28.8%, 27.1%, 0%, 33.3%)
CIE-LABlab(53.37, 9.61, -24.80)
CIE-LCHlch(53.37, 26.59, 291.19°)
OKLaboklab(60.15% 0.0136 -0.0686)
OKLCHoklch(60.15% 0.07 281.2)
XYZxyz(22.3466, 21.3820, 40.9722)
Luminance0.2138 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CAA #AAA779
analogous
#7994AA #797CAA #8F79AA
triadic
#797CAA #AA797C #7CAA79
tetradic
#797CAA #AA7994 #AAA779 #79AA8F
square
#797CAA #AA7994 #AAA779 #79AA8F
split-complementary
#797CAA #AA8F79 #94AA79
monochromatic
#414467 #595C8D #797CAA #9EA1C2 #C4C5DA

Accessibility & contrast

On white

3.98
#797CAA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#797CAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CAA
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CAA#FFFFFF#000000##000000
##797CAA1.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F81AC
Deuteranopia (green-blind)
#6D7EA9
Tritanopia (blue-blind)
#6D848C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #797caa;
/* rgb */ color: rgb(121, 124, 170);
/* oklch */ color: oklch(60.2% 0.070 281.2);
Tailwind
colors: {
  custom: {
    50: '#a1a1c3',
    500: '#797caa',
    950: '#000000',
  },
}
SCSS
$custom: #797caa;
$custom-light: #a1a1c3;
$custom-dark: #000000;
JSON
{
  "hex": "#797caa",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 170
  },
  "hsl": {
    "h": 236.327,
    "s": 22.374,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60154,
    "c": 0.06989,
    "h": 281.2
  },
  "luminance": 0.21383
}

Semantic roles & 50–950 ramp

primary
#797CAA
secondary
#C9C8B5
accent
#BA69BF
background
#F9F9FC
surface
#F2F2F8
border
#CCCCD1
text
#0F0F12
muted
#7E7E81

Preview Lab

Preview with #797CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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