#797BB1#797BB1

#797BB1 is a mid, moderate blue. Relative luminance 0.214; OKLCH L 60.3% C 0.082 H 282.0°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#797BB1
RGBrgb(121, 123, 177)
HSLhsl(238, 26%, 58%)
HSVhsv(238, 32%, 69%)
CMYKcmyk(31.6%, 30.5%, 0%, 30.6%)
CIE-LABlab(53.39, 12.04, -28.80)
CIE-LCHlch(53.39, 31.21, 292.69°)
OKLaboklab(60.27% 0.017 -0.08)
OKLCHoklch(60.27% 0.082 282)
XYZxyz(22.9018, 21.4045, 44.5113)
Luminance0.2140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BB1 #B1AF79
analogous
#7997B1 #797BB1 #9379B1
triadic
#797BB1 #B1797B #7BB179
tetradic
#797BB1 #B17997 #B1AF79 #79B193
square
#797BB1 #B17997 #B1AF79 #79B193
split-complementary
#797BB1 #B19379 #97B179
monochromatic
#41426F #575996 #797BB1 #A0A1C8 #C6C7DE

Accessibility & contrast

On white

3.98
#797BB1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#797BB1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BB1
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BB1#FFFFFF#000000##000000
##797BB11.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B81B3
Deuteranopia (green-blind)
#697EB0
Tritanopia (blue-blind)
#6B858E
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797bb1;
/* rgb */ color: rgb(121, 123, 177);
/* oklch */ color: oklch(60.3% 0.082 282.0);
Tailwind
colors: {
  custom: {
    50: '#a1a1c8',
    500: '#797bb1',
    950: '#000000',
  },
}
SCSS
$custom: #797bb1;
$custom-light: #a1a1c8;
$custom-dark: #000000;
JSON
{
  "hex": "#797bb1",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 177
  },
  "hsl": {
    "h": 237.857,
    "s": 26.415,
    "l": 58.431
  },
  "oklch": {
    "l": 0.6027,
    "c": 0.08179,
    "h": 282
  },
  "luminance": 0.21405
}

Semantic roles & 50–950 ramp

primary
#797BB1
secondary
#CECDB8
accent
#BF65C3
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0E13
muted
#7F7E82

Preview Lab

Preview with #797BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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