#797CBD#797CBD

#797CBD is a mid, moderate blue. Relative luminance 0.222; OKLCH L 61.1% C 0.098 H 281.0°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#797CBD
RGBrgb(121, 124, 189)
HSLhsl(237, 34%, 61%)
HSVhsv(237, 36%, 74%)
CMYKcmyk(36%, 34.4%, 0%, 25.9%)
CIE-LABlab(54.19, 14.69, -34.44)
CIE-LCHlch(54.19, 37.44, 293.11°)
OKLaboklab(61.06% 0.0188 -0.0963)
OKLCHoklch(61.06% 0.098 281)
XYZxyz(24.2755, 22.1535, 51.1313)
Luminance0.2215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CBD #BDBA79
analogous
#799EBD #797CBD #9879BD
triadic
#797CBD #BD797C #7CBD79
tetradic
#797CBD #BD799E #BDBA79 #79BD98
square
#797CBD #BD799E #BDBA79 #79BD98
split-complementary
#797CBD #BD9879 #9EBD79
monochromatic
#3E417E #5256A7 #797CBD #A2A4D1 #CBCCE5

Accessibility & contrast

On white

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

On black

5.43
#797CBD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CBD
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CBD#FFFFFF#000000##000000
##797CBD1.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6784C0
Deuteranopia (green-blind)
#647FBB
Tritanopia (blue-blind)
#668894
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797cbd;
/* rgb */ color: rgb(121, 124, 189);
/* oklch */ color: oklch(61.1% 0.098 281.0);
Tailwind
colors: {
  custom: {
    50: '#a2a1d1',
    500: '#797cbd',
    950: '#000000',
  },
}
SCSS
$custom: #797cbd;
$custom-light: #a2a1d1;
$custom-dark: #000000;
JSON
{
  "hex": "#797cbd",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 189
  },
  "hsl": {
    "h": 237.353,
    "s": 34,
    "l": 60.784
  },
  "oklch": {
    "l": 0.61063,
    "c": 0.09808,
    "h": 281
  },
  "luminance": 0.22154
}

Semantic roles & 50–950 ramp

primary
#797CBD
secondary
#D6D5BC
accent
#A839AD
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0F14
muted
#7F7E82

Preview Lab

Preview with #797CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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