#797DAA#797DAA

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

Color values

HEX#797DAA
RGBrgb(121, 125, 170)
HSLhsl(235, 22%, 57%)
HSVhsv(235, 29%, 67%)
CMYKcmyk(28.8%, 26.5%, 0%, 33.3%)
CIE-LABlab(53.64, 9.02, -24.38)
CIE-LCHlch(53.64, 25.99, 290.31°)
OKLaboklab(60.37% 0.0121 -0.0674)
OKLCHoklch(60.37% 0.068 280.2)
XYZxyz(22.4725, 21.6339, 41.0142)
Luminance0.2163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DAA #AAA679
analogous
#7996AA #797DAA #8E79AA
triadic
#797DAA #AA797D #7DAA79
tetradic
#797DAA #AA7996 #AAA679 #79AA8E
square
#797DAA #AA7996 #AAA679 #79AA8E
split-complementary
#797DAA #AA8E79 #96AA79
monochromatic
#414567 #595D8D #797DAA #9EA1C2 #C4C6DA

Accessibility & contrast

On white

3.94
#797DAA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#797DAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DAA
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DAA#FFFFFF#000000##000000
##797DAA1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7082AC
Deuteranopia (green-blind)
#6E7FA9
Tritanopia (blue-blind)
#6D858D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797daa;
/* rgb */ color: rgb(121, 125, 170);
/* oklch */ color: oklch(60.4% 0.068 280.2);
Tailwind
colors: {
  custom: {
    50: '#a1a2c3',
    500: '#797daa',
    950: '#000000',
  },
}
SCSS
$custom: #797daa;
$custom-light: #a1a2c3;
$custom-dark: #000000;
JSON
{
  "hex": "#797daa",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 170
  },
  "hsl": {
    "h": 235.102,
    "s": 22.374,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60365,
    "c": 0.06845,
    "h": 280.2
  },
  "luminance": 0.21634
}

Semantic roles & 50–950 ramp

primary
#797DAA
secondary
#C9C8B5
accent
#B869BF
background
#F9F9FC
surface
#F2F2F8
border
#CCCCD1
text
#0F0F12
muted
#7E7E81

Preview Lab

Preview with #797DAA

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

Preview Lab → · Contrast checker → · Palette generator →

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