#797EB7#797EB7

#797EB7 is a mid, moderate blue. Relative luminance 0.224; OKLCH L 61.2% C 0.086 H 279.7°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#797EB7
RGBrgb(121, 126, 183)
HSLhsl(235, 30%, 60%)
HSVhsv(235, 34%, 72%)
CMYKcmyk(33.9%, 31.1%, 0%, 28.2%)
CIE-LABlab(54.45, 11.87, -30.59)
CIE-LCHlch(54.45, 32.81, 291.21°)
OKLaboklab(61.18% 0.0145 -0.0852)
OKLCHoklch(61.18% 0.086 279.7)
XYZxyz(23.8909, 22.4048, 47.8563)
Luminance0.2241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EB7 #B7B279
analogous
#799DB7 #797EB7 #9379B7
triadic
#797EB7 #B7797E #7EB779
tetradic
#797EB7 #B7799D #B7B279 #79B793
square
#797EB7 #B7799D #B7B279 #79B793
split-complementary
#797EB7 #B79379 #9DB779
monochromatic
#3F4476 #555B9E #797EB7 #A1A4CC #C9CBE2

Accessibility & contrast

On white

3.83
#797EB7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#797EB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EB7
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EB7#FFFFFF#000000##000000
##797EB71.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D85B9
Deuteranopia (green-blind)
#6980B6
Tritanopia (blue-blind)
#688992
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797eb7;
/* rgb */ color: rgb(121, 126, 183);
/* oklch */ color: oklch(61.2% 0.086 279.7);
Tailwind
colors: {
  custom: {
    50: '#a1a3cd',
    500: '#797eb7',
    950: '#000000',
  },
}
SCSS
$custom: #797eb7;
$custom-light: #a1a3cd;
$custom-dark: #000000;
JSON
{
  "hex": "#797eb7",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 183
  },
  "hsl": {
    "h": 235.161,
    "s": 30.097,
    "l": 59.608
  },
  "oklch": {
    "l": 0.61178,
    "c": 0.08638,
    "h": 279.7
  },
  "luminance": 0.22406
}

Semantic roles & 50–950 ramp

primary
#797EB7
secondary
#D2D0BA
accent
#BE61C6
background
#FAFAFC
surface
#F4F3F9
border
#CECDD2
text
#0F0F13
muted
#7F7F82

Preview Lab

Preview with #797EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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