#797CA8#797CA8

#797CA8 is a mid, moderate blue. Relative luminance 0.213; OKLCH L 60.1% C 0.067 H 281.1°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#797CA8
RGBrgb(121, 124, 168)
HSLhsl(236, 21%, 57%)
HSVhsv(236, 28%, 66%)
CMYKcmyk(28%, 26.2%, 0%, 34.1%)
CIE-LABlab(53.28, 9.10, -23.77)
CIE-LCHlch(53.28, 25.45, 290.94°)
OKLaboklab(60.06% 0.0129 -0.0656)
OKLCHoklch(60.06% 0.067 281.1)
XYZxyz(22.1588, 21.3069, 39.9833)
Luminance0.2131 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CA8 #A8A579
analogous
#7994A8 #797CA8 #8E79A8
triadic
#797CA8 #A8797C #7CA879
tetradic
#797CA8 #A87994 #A8A579 #79A88E
square
#797CA8 #A87994 #A8A579 #79A88E
split-complementary
#797CA8 #A88E79 #94A879
monochromatic
#424465 #5A5D8A #797CA8 #9EA0C0 #C3C5D8

Accessibility & contrast

On white

3.99
#797CA8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#797CA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CA8
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CA8#FFFFFF#000000##000000
##797CA81.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7081AA
Deuteranopia (green-blind)
#6E7EA7
Tritanopia (blue-blind)
#6E848B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #797ca8;
/* rgb */ color: rgb(121, 124, 168);
/* oklch */ color: oklch(60.1% 0.067 281.1);
Tailwind
colors: {
  custom: {
    50: '#a0a1c2',
    500: '#797ca8',
    950: '#000000',
  },
}
SCSS
$custom: #797ca8;
$custom-light: #a0a1c2;
$custom-dark: #000000;
JSON
{
  "hex": "#797ca8",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 168
  },
  "hsl": {
    "h": 236.17,
    "s": 21.267,
    "l": 56.667
  },
  "oklch": {
    "l": 0.60064,
    "c": 0.06688,
    "h": 281.1
  },
  "luminance": 0.21307
}

Semantic roles & 50–950 ramp

primary
#797CA8
secondary
#C8C7B5
accent
#B86ABE
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0F12
muted
#7E7E81

Preview Lab

Preview with #797CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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