#797BB0#797BB0

#797BB0 is a mid, moderate blue. Relative luminance 0.214; OKLCH L 60.2% C 0.080 H 282.0°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#797BB0
RGBrgb(121, 123, 176)
HSLhsl(238, 26%, 58%)
HSVhsv(238, 31%, 69%)
CMYKcmyk(31.3%, 30.1%, 0%, 31%)
CIE-LABlab(53.35, 11.78, -28.29)
CIE-LCHlch(53.35, 30.64, 292.60°)
OKLaboklab(60.22% 0.0167 -0.0785)
OKLCHoklch(60.22% 0.08 282)
XYZxyz(22.8025, 21.3648, 43.9883)
Luminance0.2137 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BB0 #B0AE79
analogous
#7996B0 #797BB0 #9279B0
triadic
#797BB0 #B0797B #7BB079
tetradic
#797BB0 #B07996 #B0AE79 #79B092
square
#797BB0 #B07996 #B0AE79 #79B092
split-complementary
#797BB0 #B09279 #96B079
monochromatic
#41426E #575A94 #797BB0 #A0A1C7 #C6C7DD

Accessibility & contrast

On white

3.98
#797BB0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#797BB0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BB0
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BB0#FFFFFF#000000##000000
##797BB01.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C81B2
Deuteranopia (green-blind)
#697EAF
Tritanopia (blue-blind)
#6B858E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #797bb0;
/* rgb */ color: rgb(121, 123, 176);
/* oklch */ color: oklch(60.2% 0.080 282.0);
Tailwind
colors: {
  custom: {
    50: '#a1a1c7',
    500: '#797bb0',
    950: '#000000',
  },
}
SCSS
$custom: #797bb0;
$custom-light: #a1a1c7;
$custom-dark: #000000;
JSON
{
  "hex": "#797bb0",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 176
  },
  "hsl": {
    "h": 237.818,
    "s": 25.822,
    "l": 58.235
  },
  "oklch": {
    "l": 0.60223,
    "c": 0.0803,
    "h": 282
  },
  "luminance": 0.21365
}

Semantic roles & 50–950 ramp

primary
#797BB0
secondary
#CDCDB7
accent
#BF66C2
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0E13
muted
#7F7E82

Preview Lab

Preview with #797BB0

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

Preview Lab → · Contrast checker → · Palette generator →

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