#797DA9#797DA9

#797DA9 is a mid, moderate blue. Relative luminance 0.216; OKLCH L 60.3% C 0.067 H 280.2°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#797DA9
RGBrgb(121, 125, 169)
HSLhsl(235, 22%, 57%)
HSVhsv(235, 28%, 66%)
CMYKcmyk(28.4%, 26%, 0%, 33.7%)
CIE-LABlab(53.60, 8.76, -23.86)
CIE-LCHlch(53.60, 25.42, 290.16°)
OKLaboklab(60.32% 0.0118 -0.0659)
OKLCHoklch(60.32% 0.067 280.2)
XYZxyz(22.3783, 21.5962, 40.5179)
Luminance0.2160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DA9 #A9A579
analogous
#7995A9 #797DA9 #8D79A9
triadic
#797DA9 #A9797D #7DA979
tetradic
#797DA9 #A97995 #A9A579 #79A98D
square
#797DA9 #A97995 #A9A579 #79A98D
split-complementary
#797DA9 #A98D79 #95A979
monochromatic
#424566 #595E8B #797DA9 #9EA1C1 #C4C5D9

Accessibility & contrast

On white

3.95
#797DA9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#797DA9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DA9
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DA9#FFFFFF#000000##000000
##797DA91.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7182AB
Deuteranopia (green-blind)
#6E7EA8
Tritanopia (blue-blind)
#6D858C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797da9;
/* rgb */ color: rgb(121, 125, 169);
/* oklch */ color: oklch(60.3% 0.067 280.2);
Tailwind
colors: {
  custom: {
    50: '#a1a2c2',
    500: '#797da9',
    950: '#000000',
  },
}
SCSS
$custom: #797da9;
$custom-light: #a1a2c2;
$custom-dark: #000000;
JSON
{
  "hex": "#797da9",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 169
  },
  "hsl": {
    "h": 235,
    "s": 21.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.6032,
    "c": 0.06695,
    "h": 280.2
  },
  "luminance": 0.21597
}

Semantic roles & 50–950 ramp

primary
#797DA9
secondary
#C9C7B5
accent
#B769BE
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0F12
muted
#7E7E81

Preview Lab

Preview with #797DA9

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

Preview Lab → · Contrast checker → · Palette generator →

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