#797AA2#797AA2

#797AA2 is a mid, moderate blue. Relative luminance 0.206; OKLCH L 59.4% C 0.061 H 283.3°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#797AA2
RGBrgb(121, 122, 162)
HSLhsl(239, 18%, 55%)
HSVhsv(239, 25%, 64%)
CMYKcmyk(25.3%, 24.7%, 0%, 36.5%)
CIE-LABlab(52.50, 8.75, -21.49)
CIE-LCHlch(52.50, 23.21, 292.15°)
OKLaboklab(59.38% 0.014 -0.0592)
OKLCHoklch(59.38% 0.061 283.3)
XYZxyz(21.3646, 20.5922, 37.0245)
Luminance0.2059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AA2 #A2A179
analogous
#798EA2 #797AA2 #8C79A2
triadic
#797AA2 #A2797A #7AA279
tetradic
#797AA2 #A2798E #A2A179 #79A28C
square
#797AA2 #A2798E #A2A179 #79A28C
split-complementary
#797AA2 #A28C79 #8EA279
monochromatic
#42435F #5B5C83 #797AA2 #9D9EBB #C1C2D4

Accessibility & contrast

On white

4.10
#797AA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#797AA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797AA2
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797AA2#FFFFFF#000000##000000
##797AA21.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F7FA4
Deuteranopia (green-blind)
#6E7CA1
Tritanopia (blue-blind)
#708188
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #797aa2;
/* rgb */ color: rgb(121, 122, 162);
/* oklch */ color: oklch(59.4% 0.061 283.3);
Tailwind
colors: {
  custom: {
    50: '#a0a0bd',
    500: '#797aa2',
    950: '#000000',
  },
}
SCSS
$custom: #797aa2;
$custom-light: #a0a0bd;
$custom-dark: #000000;
JSON
{
  "hex": "#797aa2",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 162
  },
  "hsl": {
    "h": 238.537,
    "s": 18.062,
    "l": 55.49
  },
  "oklch": {
    "l": 0.59378,
    "c": 0.06078,
    "h": 283.3
  },
  "luminance": 0.20593
}

Semantic roles & 50–950 ramp

primary
#797AA2
secondary
#C4C4B3
accent
#B96DBB
background
#F9F9FB
surface
#F2F2F6
border
#CCCCD0
text
#0F0E12
muted
#7E7E81

Preview Lab

Preview with #797AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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