#797DB1#797DB1

#797DB1 is a mid, moderate blue. Relative luminance 0.219; OKLCH L 60.7% C 0.079 H 280.4°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#797DB1
RGBrgb(121, 125, 177)
HSLhsl(236, 26%, 58%)
HSVhsv(236, 32%, 69%)
CMYKcmyk(31.6%, 29.4%, 0%, 30.6%)
CIE-LABlab(53.93, 10.86, -27.96)
CIE-LCHlch(53.93, 30.00, 291.22°)
OKLaboklab(60.69% 0.0142 -0.0776)
OKLCHoklch(60.69% 0.079 280.4)
XYZxyz(23.1524, 21.9058, 44.5948)
Luminance0.2191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DB1 #B1AD79
analogous
#7999B1 #797DB1 #9179B1
triadic
#797DB1 #B1797D #7DB179
tetradic
#797DB1 #B17999 #B1AD79 #79B191
square
#797DB1 #B17999 #B1AD79 #79B191
split-complementary
#797DB1 #B19179 #99B179
monochromatic
#41446F #575C96 #797DB1 #A0A3C8 #C6C8DE

Accessibility & contrast

On white

3.90
#797DB1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#797DB1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DB1
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DB1#FFFFFF#000000##000000
##797DB11.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E83B3
Deuteranopia (green-blind)
#6B7FB0
Tritanopia (blue-blind)
#6B878F
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797db1;
/* rgb */ color: rgb(121, 125, 177);
/* oklch */ color: oklch(60.7% 0.079 280.4);
Tailwind
colors: {
  custom: {
    50: '#a1a2c8',
    500: '#797db1',
    950: '#000000',
  },
}
SCSS
$custom: #797db1;
$custom-light: #a1a2c8;
$custom-dark: #000000;
JSON
{
  "hex": "#797db1",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 177
  },
  "hsl": {
    "h": 235.714,
    "s": 26.415,
    "l": 58.431
  },
  "oklch": {
    "l": 0.60686,
    "c": 0.0789,
    "h": 280.4
  },
  "luminance": 0.21907
}

Semantic roles & 50–950 ramp

primary
#797DB1
secondary
#CECCB8
accent
#BC65C3
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0F13
muted
#7F7E82

Preview Lab

Preview with #797DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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