#797FA8#797FA8

#797FA8 is a mid, moderate blue. Relative luminance 0.221; OKLCH L 60.7% C 0.063 H 277.9°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#797FA8
RGBrgb(121, 127, 168)
HSLhsl(232, 21%, 57%)
HSVhsv(232, 28%, 66%)
CMYKcmyk(28%, 24.4%, 0%, 34.1%)
CIE-LABlab(54.10, 7.33, -22.51)
CIE-LCHlch(54.10, 23.67, 288.03°)
OKLaboklab(60.7% 0.0086 -0.0621)
OKLCHoklch(60.7% 0.063 277.9)
XYZxyz(22.5405, 22.0702, 40.1106)
Luminance0.2207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FA8 #A8A279
analogous
#7997A8 #797FA8 #8B79A8
triadic
#797FA8 #A8797F #7FA879
tetradic
#797FA8 #A87997 #A8A279 #79A88B
square
#797FA8 #A87997 #A8A279 #79A88B
split-complementary
#797FA8 #A88B79 #97A879
monochromatic
#424665 #5A608A #797FA8 #9EA2C0 #C3C6D8

Accessibility & contrast

On white

3.88
#797FA8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#797FA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FA8
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FA8#FFFFFF#000000##000000
##797FA81.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7383AA
Deuteranopia (green-blind)
#7180A7
Tritanopia (blue-blind)
#6D878D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797fa8;
/* rgb */ color: rgb(121, 127, 168);
/* oklch */ color: oklch(60.7% 0.063 277.9);
Tailwind
colors: {
  custom: {
    50: '#a0a4c2',
    500: '#797fa8',
    950: '#000000',
  },
}
SCSS
$custom: #797fa8;
$custom-light: #a0a4c2;
$custom-dark: #000000;
JSON
{
  "hex": "#797fa8",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 168
  },
  "hsl": {
    "h": 232.34,
    "s": 21.267,
    "l": 56.667
  },
  "oklch": {
    "l": 0.60699,
    "c": 0.06265,
    "h": 277.9
  },
  "luminance": 0.22071
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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