#797EA8#797EA8

#797EA8 is a mid, moderate blue. Relative luminance 0.218; OKLCH L 60.5% C 0.064 H 279.0°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#797EA8
RGBrgb(121, 126, 168)
HSLhsl(234, 21%, 57%)
HSVhsv(234, 28%, 66%)
CMYKcmyk(28%, 25%, 0%, 34.1%)
CIE-LABlab(53.83, 7.92, -22.93)
CIE-LCHlch(53.83, 24.25, 289.05°)
OKLaboklab(60.49% 0.01 -0.0632)
OKLCHoklch(60.49% 0.064 279)
XYZxyz(22.4120, 21.8132, 40.0677)
Luminance0.2181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EA8 #A8A379
analogous
#7996A8 #797EA8 #8C79A8
triadic
#797EA8 #A8797E #7EA879
tetradic
#797EA8 #A87996 #A8A379 #79A88C
square
#797EA8 #A87996 #A8A379 #79A88C
split-complementary
#797EA8 #A88C79 #96A879
monochromatic
#424565 #5A5F8A #797EA8 #9EA2C0 #C3C5D8

Accessibility & contrast

On white

3.92
#797EA8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#797EA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EA8
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EA8#FFFFFF#000000##000000
##797EA81.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7282AA
Deuteranopia (green-blind)
#707FA7
Tritanopia (blue-blind)
#6D868C
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797ea8;
/* rgb */ color: rgb(121, 126, 168);
/* oklch */ color: oklch(60.5% 0.064 279.0);
Tailwind
colors: {
  custom: {
    50: '#a0a3c2',
    500: '#797ea8',
    950: '#000000',
  },
}
SCSS
$custom: #797ea8;
$custom-light: #a0a3c2;
$custom-dark: #000000;
JSON
{
  "hex": "#797ea8",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 168
  },
  "hsl": {
    "h": 233.617,
    "s": 21.267,
    "l": 56.667
  },
  "oklch": {
    "l": 0.60487,
    "c": 0.06404,
    "h": 279
  },
  "luminance": 0.21814
}

Semantic roles & 50–950 ramp

primary
#797EA8
secondary
#C8C6B5
accent
#B56ABE
background
#F9FAFB
surface
#F2F3F7
border
#CCCDD0
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #797EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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