#797FA0#797FA0

#797FA0 is a mid, muted blue. Relative luminance 0.218; OKLCH L 60.4% C 0.051 H 276.7°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#797FA0
RGBrgb(121, 127, 160)
HSLhsl(231, 17%, 55%)
HSVhsv(231, 24%, 63%)
CMYKcmyk(24.4%, 20.6%, 0%, 37.3%)
CIE-LABlab(53.79, 5.31, -18.35)
CIE-LCHlch(53.79, 19.10, 286.14°)
OKLaboklab(60.36% 0.0059 -0.0503)
OKLCHoklch(60.36% 0.051 276.7)
XYZxyz(21.8181, 21.7813, 36.3056)
Luminance0.2178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FA0 #A09A79
analogous
#7993A0 #797FA0 #8679A0
triadic
#797FA0 #A0797F #7FA079
tetradic
#797FA0 #A07993 #A09A79 #79A086
square
#797FA0 #A07993 #A09A79 #79A086
split-complementary
#797FA0 #A08679 #93A079
monochromatic
#42465D #5B6181 #797FA0 #9DA1B9 #C1C3D3

Accessibility & contrast

On white

3.92
#797FA0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#797FA0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FA0
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FA0#FFFFFF#000000##000000
##797FA01.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7682A2
Deuteranopia (green-blind)
#737F9F
Tritanopia (blue-blind)
#70858A
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797fa0;
/* rgb */ color: rgb(121, 127, 160);
/* oklch */ color: oklch(60.4% 0.051 276.7);
Tailwind
colors: {
  custom: {
    50: '#a0a4bc',
    500: '#797fa0',
    950: '#000000',
  },
}
SCSS
$custom: #797fa0;
$custom-light: #a0a4bc;
$custom-dark: #000000;
JSON
{
  "hex": "#797fa0",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 160
  },
  "hsl": {
    "h": 230.769,
    "s": 17.031,
    "l": 55.098
  },
  "oklch": {
    "l": 0.60359,
    "c": 0.05067,
    "h": 276.7
  },
  "luminance": 0.21782
}

Semantic roles & 50–950 ramp

primary
#797FA0
secondary
#C3C0B2
accent
#AE6EBA
background
#F9FAFB
surface
#F2F3F6
border
#CCCDD0
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #797FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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