#797BB7#797BB7

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

Color values

HEX#797BB7
RGBrgb(121, 123, 183)
HSLhsl(238, 30%, 60%)
HSVhsv(238, 34%, 72%)
CMYKcmyk(33.9%, 32.8%, 0%, 28.2%)
CIE-LABlab(53.65, 13.65, -31.84)
CIE-LCHlch(53.65, 34.64, 293.21°)
OKLaboklab(60.56% 0.0186 -0.0887)
OKLCHoklch(60.56% 0.091 281.9)
XYZxyz(23.5130, 21.6490, 47.7304)
Luminance0.2165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BB7 #B7B579
analogous
#799AB7 #797BB7 #9679B7
triadic
#797BB7 #B7797B #7BB779
tetradic
#797BB7 #B7799A #B7B579 #79B796
square
#797BB7 #B7799A #B7B579 #79B796
split-complementary
#797BB7 #B79679 #9AB779
monochromatic
#3F4176 #55579E #797BB7 #A1A2CC #C9C9E2

Accessibility & contrast

On white

3.94
#797BB7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#797BB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BB7
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BB7#FFFFFF#000000##000000
##797BB71.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6982B9
Deuteranopia (green-blind)
#667EB6
Tritanopia (blue-blind)
#698691
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797bb7;
/* rgb */ color: rgb(121, 123, 183);
/* oklch */ color: oklch(60.6% 0.091 281.9);
Tailwind
colors: {
  custom: {
    50: '#a1a1cd',
    500: '#797bb7',
    950: '#000000',
  },
}
SCSS
$custom: #797bb7;
$custom-light: #a1a1cd;
$custom-dark: #000000;
JSON
{
  "hex": "#797bb7",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 183
  },
  "hsl": {
    "h": 238.065,
    "s": 30.097,
    "l": 59.608
  },
  "oklch": {
    "l": 0.6056,
    "c": 0.09069,
    "h": 281.9
  },
  "luminance": 0.2165
}

Semantic roles & 50–950 ramp

primary
#797BB7
secondary
#D2D1BA
accent
#C361C6
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0E13
muted
#7F7E82

Preview Lab

Preview with #797BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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