#797DA1#797DA1

#797DA1 is a mid, muted blue. Relative luminance 0.213; OKLCH L 60.0% C 0.055 H 279.7°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#797DA1
RGBrgb(121, 125, 161)
HSLhsl(234, 18%, 55%)
HSVhsv(234, 25%, 63%)
CMYKcmyk(24.8%, 22.4%, 0%, 36.9%)
CIE-LABlab(53.28, 6.73, -19.71)
CIE-LCHlch(53.28, 20.83, 288.85°)
OKLaboklab(59.97% 0.0092 -0.0541)
OKLCHoklch(59.97% 0.055 279.7)
XYZxyz(21.6502, 21.3049, 36.6829)
Luminance0.2130 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DA1 #A19D79
analogous
#7991A1 #797DA1 #8979A1
triadic
#797DA1 #A1797D #7DA179
tetradic
#797DA1 #A17991 #A19D79 #79A189
square
#797DA1 #A17991 #A19D79 #79A189
split-complementary
#797DA1 #A18979 #91A179
monochromatic
#42455E #5B5F82 #797DA1 #9DA0BA #C1C3D3

Accessibility & contrast

On white

3.99
#797DA1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#797DA1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DA1
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DA1#FFFFFF#000000##000000
##797DA11.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7381A3
Deuteranopia (green-blind)
#717EA0
Tritanopia (blue-blind)
#708389
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #797da1;
/* rgb */ color: rgb(121, 125, 161);
/* oklch */ color: oklch(60.0% 0.055 279.7);
Tailwind
colors: {
  custom: {
    50: '#a0a2bd',
    500: '#797da1',
    950: '#000000',
  },
}
SCSS
$custom: #797da1;
$custom-light: #a0a2bd;
$custom-dark: #000000;
JSON
{
  "hex": "#797da1",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 161
  },
  "hsl": {
    "h": 234,
    "s": 17.544,
    "l": 55.294
  },
  "oklch": {
    "l": 0.59972,
    "c": 0.05493,
    "h": 279.7
  },
  "luminance": 0.21305
}

Semantic roles & 50–950 ramp

primary
#797DA1
secondary
#C3C2B3
accent
#B36EBA
background
#F9F9FB
surface
#F2F2F6
border
#CCCCD0
text
#0F0F12
muted
#7E7E81

Preview Lab

Preview with #797DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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