#797BBA#797BBA

#797BBA is a mid, moderate blue. Relative luminance 0.218; OKLCH L 60.7% C 0.095 H 281.8°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#797BBA
RGBrgb(121, 123, 186)
HSLhsl(238, 32%, 60%)
HSVhsv(238, 35%, 73%)
CMYKcmyk(34.9%, 33.9%, 0%, 27.1%)
CIE-LABlab(53.79, 14.47, -33.35)
CIE-LCHlch(53.79, 36.35, 293.45°)
OKLaboklab(60.71% 0.0194 -0.0931)
OKLCHoklch(60.71% 0.095 281.8)
XYZxyz(23.8286, 21.7753, 49.3924)
Luminance0.2178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BBA #BAB879
analogous
#799BBA #797BBA #9779BA
triadic
#797BBA #BA797B #7BBA79
tetradic
#797BBA #BA799B #BAB879 #79BA97
square
#797BBA #BA799B #BAB879 #79BA97
split-complementary
#797BBA #BA9779 #9BBA79
monochromatic
#3F417A #5456A2 #797BBA #A1A3CF #CACBE4

Accessibility & contrast

On white

3.92
#797BBA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#797BBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BBA
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BBA#FFFFFF#000000##000000
##797BBA1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6783BD
Deuteranopia (green-blind)
#647EB8
Tritanopia (blue-blind)
#688792
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797bba;
/* rgb */ color: rgb(121, 123, 186);
/* oklch */ color: oklch(60.7% 0.095 281.8);
Tailwind
colors: {
  custom: {
    50: '#a2a1cf',
    500: '#797bba',
    950: '#000000',
  },
}
SCSS
$custom: #797bba;
$custom-light: #a2a1cf;
$custom-dark: #000000;
JSON
{
  "hex": "#797bba",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 186
  },
  "hsl": {
    "h": 238.154,
    "s": 32.02,
    "l": 60.196
  },
  "oklch": {
    "l": 0.60708,
    "c": 0.09511,
    "h": 281.8
  },
  "luminance": 0.21776
}

Semantic roles & 50–950 ramp

primary
#797BBA
secondary
#D4D3BB
accent
#A73BAB
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0E13
muted
#7F7E82

Preview Lab

Preview with #797BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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