#797CA7#797CA7

#797CA7 is a mid, moderate blue. Relative luminance 0.213; OKLCH L 60.0% C 0.065 H 281.1°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#797CA7
RGBrgb(121, 124, 167)
HSLhsl(236, 21%, 56%)
HSVhsv(236, 28%, 65%)
CMYKcmyk(27.5%, 25.7%, 0%, 34.5%)
CIE-LABlab(53.24, 8.84, -23.25)
CIE-LCHlch(53.24, 24.87, 290.82°)
OKLaboklab(60.02% 0.0126 -0.0641)
OKLCHoklch(60.02% 0.065 281.1)
XYZxyz(22.0660, 21.2697, 39.4946)
Luminance0.2127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CA7 #A7A479
analogous
#7993A7 #797CA7 #8D79A7
triadic
#797CA7 #A7797C #7CA779
tetradic
#797CA7 #A77993 #A7A479 #79A78D
square
#797CA7 #A77993 #A7A479 #79A78D
split-complementary
#797CA7 #A78D79 #93A779
monochromatic
#424464 #5A5D89 #797CA7 #9EA0BF #C3C4D8

Accessibility & contrast

On white

4.00
#797CA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#797CA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CA7
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CA7#FFFFFF#000000##000000
##797CA71.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7081A9
Deuteranopia (green-blind)
#6E7EA6
Tritanopia (blue-blind)
#6E848B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #797ca7;
/* rgb */ color: rgb(121, 124, 167);
/* oklch */ color: oklch(60.0% 0.065 281.1);
Tailwind
colors: {
  custom: {
    50: '#a0a1c1',
    500: '#797ca7',
    950: '#000000',
  },
}
SCSS
$custom: #797ca7;
$custom-light: #a0a1c1;
$custom-dark: #000000;
JSON
{
  "hex": "#797ca7",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 167
  },
  "hsl": {
    "h": 236.087,
    "s": 20.721,
    "l": 56.471
  },
  "oklch": {
    "l": 0.6002,
    "c": 0.06538,
    "h": 281.1
  },
  "luminance": 0.2127
}

Semantic roles & 50–950 ramp

primary
#797CA7
secondary
#C7C6B4
accent
#B86BBD
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0F12
muted
#7E7E81

Preview Lab

Preview with #797CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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