#797EBA#797EBA

#797EBA is a mid, moderate blue. Relative luminance 0.225; OKLCH L 61.3% C 0.091 H 279.7°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#797EBA
RGBrgb(121, 126, 186)
HSLhsl(235, 32%, 60%)
HSVhsv(235, 35%, 73%)
CMYKcmyk(34.9%, 32.3%, 0%, 27.1%)
CIE-LABlab(54.59, 12.68, -32.10)
CIE-LCHlch(54.59, 34.52, 291.56°)
OKLaboklab(61.32% 0.0153 -0.0895)
OKLCHoklch(61.32% 0.091 279.7)
XYZxyz(24.2064, 22.5310, 49.5184)
Luminance0.2253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EBA #BAB579
analogous
#799EBA #797EBA #9579BA
triadic
#797EBA #BA797E #7EBA79
tetradic
#797EBA #BA799E #BAB579 #79BA95
square
#797EBA #BA799E #BAB579 #79BA95
split-complementary
#797EBA #BA9579 #9EBA79
monochromatic
#3F437A #545AA2 #797EBA #A1A5CF #CACCE4

Accessibility & contrast

On white

3.81
#797EBA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#797EBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EBA
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EBA#FFFFFF#000000##000000
##797EBA1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B85BC
Deuteranopia (green-blind)
#6880B9
Tritanopia (blue-blind)
#678994
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797eba;
/* rgb */ color: rgb(121, 126, 186);
/* oklch */ color: oklch(61.3% 0.091 279.7);
Tailwind
colors: {
  custom: {
    50: '#a2a3cf',
    500: '#797eba',
    950: '#000000',
  },
}
SCSS
$custom: #797eba;
$custom-light: #a2a3cf;
$custom-dark: #000000;
JSON
{
  "hex": "#797eba",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 186
  },
  "hsl": {
    "h": 235.385,
    "s": 32.02,
    "l": 60.196
  },
  "oklch": {
    "l": 0.61323,
    "c": 0.09082,
    "h": 279.7
  },
  "luminance": 0.22532
}

Semantic roles & 50–950 ramp

primary
#797EBA
secondary
#D4D2BB
accent
#A23BAB
background
#FAFAFC
surface
#F4F3F9
border
#CECDD2
text
#0F0F13
muted
#7F7F82

Preview Lab

Preview with #797EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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