#797CA5#797CA5

#797CA5 is a mid, moderate blue. Relative luminance 0.212; OKLCH L 59.9% C 0.062 H 281.1°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#797CA5
RGBrgb(121, 124, 165)
HSLhsl(236, 20%, 56%)
HSVhsv(236, 27%, 65%)
CMYKcmyk(26.7%, 24.8%, 0%, 35.3%)
CIE-LABlab(53.16, 8.33, -22.21)
CIE-LCHlch(53.16, 23.72, 290.55°)
OKLaboklab(59.93% 0.012 -0.0612)
OKLCHoklch(59.93% 0.062 281.1)
XYZxyz(21.8826, 21.1964, 38.5284)
Luminance0.2120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CA5 #A5A279
analogous
#7992A5 #797CA5 #8C79A5
triadic
#797CA5 #A5797C #7CA579
tetradic
#797CA5 #A57992 #A5A279 #79A58C
square
#797CA5 #A57992 #A5A279 #79A58C
split-complementary
#797CA5 #A58C79 #92A579
monochromatic
#424462 #5A5D86 #797CA5 #9EA0BE #C2C4D6

Accessibility & contrast

On white

4.01
#797CA5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#797CA5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CA5
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CA5#FFFFFF#000000##000000
##797CA51.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7181A7
Deuteranopia (green-blind)
#6F7EA4
Tritanopia (blue-blind)
#6E838A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #797ca5;
/* rgb */ color: rgb(121, 124, 165);
/* oklch */ color: oklch(59.9% 0.062 281.1);
Tailwind
colors: {
  custom: {
    50: '#a0a1bf',
    500: '#797ca5',
    950: '#000000',
  },
}
SCSS
$custom: #797ca5;
$custom-light: #a0a1bf;
$custom-dark: #000000;
JSON
{
  "hex": "#797ca5",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 165
  },
  "hsl": {
    "h": 235.909,
    "s": 19.643,
    "l": 56.078
  },
  "oklch": {
    "l": 0.59932,
    "c": 0.06237,
    "h": 281.1
  },
  "luminance": 0.21197
}

Semantic roles & 50–950 ramp

primary
#797CA5
secondary
#C6C5B4
accent
#B76CBC
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0F12
muted
#7E7E81

Preview Lab

Preview with #797CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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