#797BB4#797BB4

#797BB4 is a mid, moderate blue. Relative luminance 0.215; OKLCH L 60.4% C 0.086 H 281.9°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#797BB4
RGBrgb(121, 123, 180)
HSLhsl(238, 28%, 59%)
HSVhsv(238, 33%, 71%)
CMYKcmyk(32.8%, 31.7%, 0%, 29.4%)
CIE-LABlab(53.52, 12.84, -30.32)
CIE-LCHlch(53.52, 32.93, 292.95°)
OKLaboklab(60.41% 0.0179 -0.0844)
OKLCHoklch(60.41% 0.086 281.9)
XYZxyz(23.2041, 21.5255, 46.1034)
Luminance0.2153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BB4 #B4B279
analogous
#7999B4 #797BB4 #9579B4
triadic
#797BB4 #B4797B #7BB479
tetradic
#797BB4 #B47999 #B4B279 #79B495
square
#797BB4 #B47999 #B4B279 #79B495
split-complementary
#797BB4 #B49579 #99B479
monochromatic
#404273 #56589A #797BB4 #A0A2CA #C7C8E0

Accessibility & contrast

On white

3.96
#797BB4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#797BB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BB4
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BB4#FFFFFF#000000##000000
##797BB41.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A82B6
Deuteranopia (green-blind)
#677EB3
Tritanopia (blue-blind)
#6A868F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797bb4;
/* rgb */ color: rgb(121, 123, 180);
/* oklch */ color: oklch(60.4% 0.086 281.9);
Tailwind
colors: {
  custom: {
    50: '#a1a1ca',
    500: '#797bb4',
    950: '#000000',
  },
}
SCSS
$custom: #797bb4;
$custom-light: #a1a1ca;
$custom-dark: #000000;
JSON
{
  "hex": "#797bb4",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 180
  },
  "hsl": {
    "h": 237.966,
    "s": 28.23,
    "l": 59.02
  },
  "oklch": {
    "l": 0.60414,
    "c": 0.08625,
    "h": 281.9
  },
  "luminance": 0.21526
}

Semantic roles & 50–950 ramp

primary
#797BB4
secondary
#D0CFB9
accent
#C163C5
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0E13
muted
#7F7E82

Preview Lab

Preview with #797BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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