#797DA4#797DA4

#797DA4 is a mid, muted blue. Relative luminance 0.214; OKLCH L 60.1% C 0.059 H 279.9°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#797DA4
RGBrgb(121, 125, 164)
HSLhsl(234, 19%, 56%)
HSVhsv(234, 26%, 64%)
CMYKcmyk(26.2%, 23.8%, 0%, 35.7%)
CIE-LABlab(53.40, 7.49, -21.28)
CIE-LCHlch(53.40, 22.55, 289.38°)
OKLaboklab(60.1% 0.0102 -0.0586)
OKLCHoklch(60.1% 0.059 279.9)
XYZxyz(21.9179, 21.4120, 38.0929)
Luminance0.2141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DA4 #A4A079
analogous
#7992A4 #797DA4 #8A79A4
triadic
#797DA4 #A4797D #7DA479
tetradic
#797DA4 #A47992 #A4A079 #79A48A
square
#797DA4 #A47992 #A4A079 #79A48A
split-complementary
#797DA4 #A48A79 #92A479
monochromatic
#424561 #5B5E85 #797DA4 #9DA0BD #C2C4D6

Accessibility & contrast

On white

3.98
#797DA4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#797DA4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DA4
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DA4#FFFFFF#000000##000000
##797DA41.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7281A6
Deuteranopia (green-blind)
#707EA3
Tritanopia (blue-blind)
#6F848A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797da4;
/* rgb */ color: rgb(121, 125, 164);
/* oklch */ color: oklch(60.1% 0.059 279.9);
Tailwind
colors: {
  custom: {
    50: '#a0a2bf',
    500: '#797da4',
    950: '#000000',
  },
}
SCSS
$custom: #797da4;
$custom-light: #a0a2bf;
$custom-dark: #000000;
JSON
{
  "hex": "#797da4",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 164
  },
  "hsl": {
    "h": 234.419,
    "s": 19.111,
    "l": 55.882
  },
  "oklch": {
    "l": 0.601,
    "c": 0.05944,
    "h": 279.9
  },
  "luminance": 0.21413
}

Semantic roles & 50–950 ramp

primary
#797DA4
secondary
#C5C4B3
accent
#B46CBC
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0F12
muted
#7E7E81

Preview Lab

Preview with #797DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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