#797CBE#797CBE

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

Color values

HEX#797CBE
RGBrgb(121, 124, 190)
HSLhsl(237, 35%, 61%)
HSVhsv(237, 36%, 75%)
CMYKcmyk(36.3%, 34.7%, 0%, 25.5%)
CIE-LABlab(54.24, 14.97, -34.94)
CIE-LCHlch(54.24, 38.01, 293.19°)
OKLaboklab(61.11% 0.019 -0.0977)
OKLCHoklch(61.11% 0.1 281)
XYZxyz(24.3845, 22.1971, 51.7049)
Luminance0.2220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CBE #BEBB79
analogous
#799EBE #797CBE #9879BE
triadic
#797CBE #BE797C #7CBE79
tetradic
#797CBE #BE799E #BEBB79 #79BE98
square
#797CBE #BE799E #BEBB79 #79BE98
split-complementary
#797CBE #BE9879 #9EBE79
monochromatic
#3E407F #5255A8 #797CBE #A2A4D2 #CBCDE6

Accessibility & contrast

On white

3.86
#797CBE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#797CBE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CBE
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CBE#FFFFFF#000000##000000
##797CBE1.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6784C1
Deuteranopia (green-blind)
#647FBC
Tritanopia (blue-blind)
#668994
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797cbe;
/* rgb */ color: rgb(121, 124, 190);
/* oklch */ color: oklch(61.1% 0.100 281.0);
Tailwind
colors: {
  custom: {
    50: '#a2a1d2',
    500: '#797cbe',
    950: '#000000',
  },
}
SCSS
$custom: #797cbe;
$custom-light: #a2a1d2;
$custom-dark: #000000;
JSON
{
  "hex": "#797cbe",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 190
  },
  "hsl": {
    "h": 237.391,
    "s": 34.673,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61113,
    "c": 0.09954,
    "h": 281
  },
  "luminance": 0.22198
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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