#797CB2#797CB2

#797CB2 is a mid, moderate blue. Relative luminance 0.217; OKLCH L 60.5% C 0.082 H 281.2°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#797CB2
RGBrgb(121, 124, 178)
HSLhsl(237, 27%, 59%)
HSVhsv(237, 32%, 70%)
CMYKcmyk(32%, 30.3%, 0%, 30.2%)
CIE-LABlab(53.70, 11.71, -28.89)
CIE-LCHlch(53.70, 31.17, 292.07°)
OKLaboklab(60.53% 0.0159 -0.0803)
OKLCHoklch(60.53% 0.082 281.2)
XYZxyz(23.1265, 21.6939, 45.0797)
Luminance0.2170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CB2 #B2AF79
analogous
#7998B2 #797CB2 #9279B2
triadic
#797CB2 #B2797C #7CB279
tetradic
#797CB2 #B27998 #B2AF79 #79B292
square
#797CB2 #B27998 #B2AF79 #79B292
split-complementary
#797CB2 #B29279 #98B279
monochromatic
#404370 #575A97 #797CB2 #A0A2C8 #C7C8DF

Accessibility & contrast

On white

3.93
#797CB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#797CB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CB2
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CB2#FFFFFF#000000##000000
##797CB21.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C82B4
Deuteranopia (green-blind)
#697EB1
Tritanopia (blue-blind)
#6A868F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797cb2;
/* rgb */ color: rgb(121, 124, 178);
/* oklch */ color: oklch(60.5% 0.082 281.2);
Tailwind
colors: {
  custom: {
    50: '#a1a1c9',
    500: '#797cb2',
    950: '#000000',
  },
}
SCSS
$custom: #797cb2;
$custom-light: #a1a1c9;
$custom-dark: #000000;
JSON
{
  "hex": "#797cb2",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 178
  },
  "hsl": {
    "h": 236.842,
    "s": 27.014,
    "l": 58.627
  },
  "oklch": {
    "l": 0.60525,
    "c": 0.08183,
    "h": 281.2
  },
  "luminance": 0.21695
}

Semantic roles & 50–950 ramp

primary
#797CB2
secondary
#CFCDB8
accent
#BE64C3
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0F13
muted
#7F7E82

Preview Lab

Preview with #797CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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