#797BC4#797BC4

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

Color values

HEX#797BC4
RGBrgb(121, 123, 196)
HSLhsl(238, 39%, 62%)
HSVhsv(238, 38%, 77%)
CMYKcmyk(38.3%, 37.2%, 0%, 23.1%)
CIE-LABlab(54.25, 17.23, -38.33)
CIE-LCHlch(54.25, 42.03, 294.21°)
OKLaboklab(61.22% 0.0218 -0.1075)
OKLCHoklch(61.22% 0.11 281.4)
XYZxyz(24.9291, 22.2155, 55.1884)
Luminance0.2222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BC4 #C4C279
analogous
#79A1C4 #797BC4 #9D79C4
triadic
#797BC4 #C4797B #7BC479
tetradic
#797BC4 #C479A1 #C4C279 #79C49D
square
#797BC4 #C479A1 #C4C279 #79C49D
split-complementary
#797BC4 #C49D79 #A1C479
monochromatic
#3B3E87 #4F51B1 #797BC4 #A3A5D7 #CECFE9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797BC4#FFFFFF#000000##000000
##797BC41.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)
#6384C7
Deuteranopia (green-blind)
#5F7FC2
Tritanopia (blue-blind)
#648996
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797bc4;
/* rgb */ color: rgb(121, 123, 196);
/* oklch */ color: oklch(61.2% 0.110 281.4);
Tailwind
colors: {
  custom: {
    50: '#a2a1d6',
    500: '#797bc4',
    950: '#000000',
  },
}
SCSS
$custom: #797bc4;
$custom-light: #a2a1d6;
$custom-dark: #000000;
JSON
{
  "hex": "#797bc4",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 196
  },
  "hsl": {
    "h": 238.4,
    "s": 38.86,
    "l": 62.157
  },
  "oklch": {
    "l": 0.6122,
    "c": 0.10972,
    "h": 281.4
  },
  "luminance": 0.22216
}

Semantic roles & 50–950 ramp

primary
#797BC4
secondary
#DAD9BF
accent
#AE34B2
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0E14
muted
#7F7E83

Preview Lab

Preview with #797BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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