#797EB4#797EB4

#797EB4 is a mid, moderate blue. Relative luminance 0.223; OKLCH L 61.0% C 0.082 H 279.6°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#797EB4
RGBrgb(121, 126, 180)
HSLhsl(235, 28%, 59%)
HSVhsv(235, 33%, 71%)
CMYKcmyk(32.8%, 30%, 0%, 29.4%)
CIE-LABlab(54.32, 11.06, -29.07)
CIE-LCHlch(54.32, 31.11, 290.83°)
OKLaboklab(61.04% 0.0137 -0.0808)
OKLCHoklch(61.04% 0.082 279.6)
XYZxyz(23.5820, 22.2812, 46.2294)
Luminance0.2228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EB4 #B4AF79
analogous
#799CB4 #797EB4 #9279B4
triadic
#797EB4 #B4797E #7EB479
tetradic
#797EB4 #B4799C #B4AF79 #79B492
square
#797EB4 #B4799C #B4AF79 #79B492
split-complementary
#797EB4 #B49279 #9CB479
monochromatic
#404473 #565C9A #797EB4 #A0A4CA #C7CAE0

Accessibility & contrast

On white

3.85
#797EB4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#797EB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EB4
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EB4#FFFFFF#000000##000000
##797EB41.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E84B6
Deuteranopia (green-blind)
#6B80B3
Tritanopia (blue-blind)
#698891
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797eb4;
/* rgb */ color: rgb(121, 126, 180);
/* oklch */ color: oklch(61.0% 0.082 279.6);
Tailwind
colors: {
  custom: {
    50: '#a1a3ca',
    500: '#797eb4',
    950: '#000000',
  },
}
SCSS
$custom: #797eb4;
$custom-light: #a1a3ca;
$custom-dark: #000000;
JSON
{
  "hex": "#797eb4",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 180
  },
  "hsl": {
    "h": 234.915,
    "s": 28.23,
    "l": 59.02
  },
  "oklch": {
    "l": 0.61035,
    "c": 0.08194,
    "h": 279.6
  },
  "luminance": 0.22282
}

Semantic roles & 50–950 ramp

primary
#797EB4
secondary
#D0CEB9
accent
#BC63C5
background
#FAFAFC
surface
#F3F3F8
border
#CDCDD1
text
#0F0F13
muted
#7F7F82

Preview Lab

Preview with #797EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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