#797CAB#797CAB

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

Color values

HEX#797CAB
RGBrgb(121, 124, 171)
HSLhsl(236, 23%, 57%)
HSVhsv(236, 29%, 67%)
CMYKcmyk(29.2%, 27.5%, 0%, 32.9%)
CIE-LABlab(53.41, 9.87, -25.31)
CIE-LCHlch(53.41, 27.17, 291.31°)
OKLaboklab(60.2% 0.0139 -0.07)
OKLCHoklch(60.2% 0.071 281.2)
XYZxyz(22.4415, 21.4199, 41.4723)
Luminance0.2142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CAB #ABA879
analogous
#7995AB #797CAB #8F79AB
triadic
#797CAB #AB797C #7CAB79
tetradic
#797CAB #AB7995 #ABA879 #79AB8F
square
#797CAB #AB7995 #ABA879 #79AB8F
split-complementary
#797CAB #AB8F79 #95AB79
monochromatic
#414468 #595C8E #797CAB #9FA1C3 #C4C6DA

Accessibility & contrast

On white

3.97
#797CAB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##797CAB#FFFFFF#000000##000000
##797CAB1.003.975.285.28
#FFFFFF3.971.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F81AD
Deuteranopia (green-blind)
#6C7EAA
Tritanopia (blue-blind)
#6D858C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797cab;
/* rgb */ color: rgb(121, 124, 171);
/* oklch */ color: oklch(60.2% 0.071 281.2);
Tailwind
colors: {
  custom: {
    50: '#a1a1c4',
    500: '#797cab',
    950: '#000000',
  },
}
SCSS
$custom: #797cab;
$custom-light: #a1a1c4;
$custom-dark: #000000;
JSON
{
  "hex": "#797cab",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 171
  },
  "hsl": {
    "h": 236.4,
    "s": 22.936,
    "l": 57.255
  },
  "oklch": {
    "l": 0.602,
    "c": 0.07139,
    "h": 281.2
  },
  "luminance": 0.21421
}

Semantic roles & 50–950 ramp

primary
#797CAB
secondary
#CAC9B6
accent
#BA68BF
background
#F9F9FC
surface
#F2F2F8
border
#CCCCD1
text
#0F0F12
muted
#7E7E81

Preview Lab

Preview with #797CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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