#797DA7#797DA7

#797DA7 is a mid, moderate blue. Relative luminance 0.215; OKLCH L 60.2% C 0.064 H 280.1°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#797DA7
RGBrgb(121, 125, 167)
HSLhsl(235, 21%, 56%)
HSVhsv(235, 28%, 65%)
CMYKcmyk(27.5%, 25.1%, 0%, 34.5%)
CIE-LABlab(53.52, 8.25, -22.83)
CIE-LCHlch(53.52, 24.27, 289.87°)
OKLaboklab(60.23% 0.0112 -0.063)
OKLCHoklch(60.23% 0.064 280.1)
XYZxyz(22.1920, 21.5216, 39.5366)
Luminance0.2152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DA7 #A7A379
analogous
#7994A7 #797DA7 #8C79A7
triadic
#797DA7 #A7797D #7DA779
tetradic
#797DA7 #A77994 #A7A379 #79A78C
square
#797DA7 #A77994 #A7A379 #79A78C
split-complementary
#797DA7 #A78C79 #94A779
monochromatic
#424564 #5A5E89 #797DA7 #9EA1BF #C3C5D8

Accessibility & contrast

On white

3.96
#797DA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#797DA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DA7
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DA7#FFFFFF#000000##000000
##797DA71.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7182A9
Deuteranopia (green-blind)
#6F7EA6
Tritanopia (blue-blind)
#6E858B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797da7;
/* rgb */ color: rgb(121, 125, 167);
/* oklch */ color: oklch(60.2% 0.064 280.1);
Tailwind
colors: {
  custom: {
    50: '#a0a2c1',
    500: '#797da7',
    950: '#000000',
  },
}
SCSS
$custom: #797da7;
$custom-light: #a0a2c1;
$custom-dark: #000000;
JSON
{
  "hex": "#797da7",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 167
  },
  "hsl": {
    "h": 234.783,
    "s": 20.721,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60231,
    "c": 0.06395,
    "h": 280.1
  },
  "luminance": 0.21522
}

Semantic roles & 50–950 ramp

primary
#797DA7
secondary
#C7C6B4
accent
#B66BBD
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0F12
muted
#7E7E81

Preview Lab

Preview with #797DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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