#797BB6#797BB6

#797BB6 is a mid, moderate blue. Relative luminance 0.216; OKLCH L 60.5% C 0.089 H 281.9°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#797BB6
RGBrgb(121, 123, 182)
HSLhsl(238, 29%, 59%)
HSVhsv(238, 34%, 71%)
CMYKcmyk(33.5%, 32.4%, 0%, 28.6%)
CIE-LABlab(53.61, 13.38, -31.33)
CIE-LCHlch(53.61, 34.07, 293.12°)
OKLaboklab(60.51% 0.0184 -0.0873)
OKLCHoklch(60.51% 0.089 281.9)
XYZxyz(23.4093, 21.6075, 47.1842)
Luminance0.2161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BB6 #B6B479
analogous
#799AB6 #797BB6 #9679B6
triadic
#797BB6 #B6797B #7BB679
tetradic
#797BB6 #B6799A #B6B479 #79B696
square
#797BB6 #B6799A #B6B479 #79B696
split-complementary
#797BB6 #B69679 #9AB679
monochromatic
#404175 #55589D #797BB6 #A1A2CC #C8C9E1

Accessibility & contrast

On white

3.95
#797BB6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#797BB6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BB6
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BB6#FFFFFF#000000##000000
##797BB61.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6982B8
Deuteranopia (green-blind)
#667EB5
Tritanopia (blue-blind)
#698690
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797bb6;
/* rgb */ color: rgb(121, 123, 182);
/* oklch */ color: oklch(60.5% 0.089 281.9);
Tailwind
colors: {
  custom: {
    50: '#a1a1cc',
    500: '#797bb6',
    950: '#000000',
  },
}
SCSS
$custom: #797bb6;
$custom-light: #a1a1cc;
$custom-dark: #000000;
JSON
{
  "hex": "#797bb6",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 182
  },
  "hsl": {
    "h": 238.033,
    "s": 29.469,
    "l": 59.412
  },
  "oklch": {
    "l": 0.60511,
    "c": 0.08921,
    "h": 281.9
  },
  "luminance": 0.21608
}

Semantic roles & 50–950 ramp

primary
#797BB6
secondary
#D1D1BA
accent
#C262C6
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0E13
muted
#7F7E82

Preview Lab

Preview with #797BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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