#797DB6#797DB6

#797DB6 is a mid, moderate blue. Relative luminance 0.221; OKLCH L 60.9% C 0.086 H 280.4°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#797DB6
RGBrgb(121, 125, 182)
HSLhsl(236, 29%, 59%)
HSVhsv(236, 34%, 71%)
CMYKcmyk(33.5%, 31.3%, 0%, 28.6%)
CIE-LABlab(54.14, 12.19, -30.50)
CIE-LCHlch(54.14, 32.85, 291.79°)
OKLaboklab(60.92% 0.0156 -0.0849)
OKLCHoklch(60.92% 0.086 280.4)
XYZxyz(23.6599, 22.1088, 47.2677)
Luminance0.2211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DB6 #B6B279
analogous
#799CB6 #797DB6 #9479B6
triadic
#797DB6 #B6797D #7DB679
tetradic
#797DB6 #B6799C #B6B279 #79B694
square
#797DB6 #B6799C #B6B279 #79B694
split-complementary
#797DB6 #B69479 #9CB679
monochromatic
#404375 #555A9D #797DB6 #A1A3CC #C8CAE1

Accessibility & contrast

On white

3.87
#797DB6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#797DB6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DB6
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DB6#FFFFFF#000000##000000
##797DB61.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C84B8
Deuteranopia (green-blind)
#697FB5
Tritanopia (blue-blind)
#698891
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797db6;
/* rgb */ color: rgb(121, 125, 182);
/* oklch */ color: oklch(60.9% 0.086 280.4);
Tailwind
colors: {
  custom: {
    50: '#a1a2cc',
    500: '#797db6',
    950: '#000000',
  },
}
SCSS
$custom: #797db6;
$custom-light: #a1a2cc;
$custom-dark: #000000;
JSON
{
  "hex": "#797db6",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 182
  },
  "hsl": {
    "h": 236.066,
    "s": 29.469,
    "l": 59.412
  },
  "oklch": {
    "l": 0.60923,
    "c": 0.08632,
    "h": 280.4
  },
  "luminance": 0.2211
}

Semantic roles & 50–950 ramp

primary
#797DB6
secondary
#D1D0BA
accent
#BF62C6
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0F13
muted
#7F7E82

Preview Lab

Preview with #797DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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