#797EBE#797EBE

#797EBE is a mid, moderate blue. Relative luminance 0.227; OKLCH L 61.5% C 0.097 H 279.7°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#797EBE
RGBrgb(121, 126, 190)
HSLhsl(236, 35%, 61%)
HSVhsv(236, 36%, 75%)
CMYKcmyk(36.3%, 33.7%, 0%, 25.5%)
CIE-LABlab(54.77, 13.78, -34.11)
CIE-LCHlch(54.77, 36.79, 292.00°)
OKLaboklab(61.52% 0.0163 -0.0953)
OKLCHoklch(61.52% 0.097 279.7)
XYZxyz(24.6376, 22.7035, 51.7893)
Luminance0.2270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EBE #BEB979
analogous
#79A0BE #797EBE #9679BE
triadic
#797EBE #BE797E #7EBE79
tetradic
#797EBE #BE79A0 #BEB979 #79BE96
square
#797EBE #BE79A0 #BEB979 #79BE96
split-complementary
#797EBE #BE9679 #A0BE79
monochromatic
#3E427F #5258A8 #797EBE #A2A6D2 #CBCDE6

Accessibility & contrast

On white

3.79
#797EBE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#797EBE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EBE
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EBE#FFFFFF#000000##000000
##797EBE1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A86C1
Deuteranopia (green-blind)
#6681BC
Tritanopia (blue-blind)
#668A95
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797ebe;
/* rgb */ color: rgb(121, 126, 190);
/* oklch */ color: oklch(61.5% 0.097 279.7);
Tailwind
colors: {
  custom: {
    50: '#a2a3d2',
    500: '#797ebe',
    950: '#000000',
  },
}
SCSS
$custom: #797ebe;
$custom-light: #a2a3d2;
$custom-dark: #000000;
JSON
{
  "hex": "#797ebe",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 190
  },
  "hsl": {
    "h": 235.652,
    "s": 34.673,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61521,
    "c": 0.0967,
    "h": 279.7
  },
  "luminance": 0.22704
}

Semantic roles & 50–950 ramp

primary
#797EBE
secondary
#D6D5BC
accent
#A538AE
background
#FAFAFC
surface
#F4F3F9
border
#CECDD2
text
#0F0F14
muted
#7F7F82

Preview Lab

Preview with #797EBE

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

Preview Lab → · Contrast checker → · Palette generator →

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