#797FA2#797FA2

#797FA2 is a mid, muted blue. Relative luminance 0.219; OKLCH L 60.4% C 0.054 H 277.1°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#797FA2
RGBrgb(121, 127, 162)
HSLhsl(231, 18%, 55%)
HSVhsv(231, 25%, 64%)
CMYKcmyk(25.3%, 21.6%, 0%, 36.5%)
CIE-LABlab(53.87, 5.81, -19.39)
CIE-LCHlch(53.87, 20.25, 286.67°)
OKLaboklab(60.44% 0.0066 -0.0533)
OKLCHoklch(60.44% 0.054 277.1)
XYZxyz(21.9944, 21.8518, 37.2344)
Luminance0.2185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FA2 #A29C79
analogous
#7993A2 #797FA2 #8779A2
triadic
#797FA2 #A2797F #7FA279
tetradic
#797FA2 #A27993 #A29C79 #79A287
square
#797FA2 #A27993 #A29C79 #79A287
split-complementary
#797FA2 #A28779 #93A279
monochromatic
#42465F #5B6183 #797FA2 #9DA2BB #C1C4D4

Accessibility & contrast

On white

3.91
#797FA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#797FA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FA2
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FA2#FFFFFF#000000##000000
##797FA21.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7582A4
Deuteranopia (green-blind)
#737FA1
Tritanopia (blue-blind)
#6F858B
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797fa2;
/* rgb */ color: rgb(121, 127, 162);
/* oklch */ color: oklch(60.4% 0.054 277.1);
Tailwind
colors: {
  custom: {
    50: '#a0a4bd',
    500: '#797fa2',
    950: '#000000',
  },
}
SCSS
$custom: #797fa2;
$custom-light: #a0a4bd;
$custom-dark: #000000;
JSON
{
  "hex": "#797fa2",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 162
  },
  "hsl": {
    "h": 231.22,
    "s": 18.062,
    "l": 55.49
  },
  "oklch": {
    "l": 0.60442,
    "c": 0.05367,
    "h": 277.1
  },
  "luminance": 0.21852
}

Semantic roles & 50–950 ramp

primary
#797FA2
secondary
#C4C1B3
accent
#AF6DBB
background
#F9FAFB
surface
#F2F3F6
border
#CCCDD0
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #797FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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