#797EC6#797EC6

#797EC6 is a mid, moderate blue. Relative luminance 0.231; OKLCH L 61.9% C 0.108 H 279.7°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#797EC6
RGBrgb(121, 126, 198)
HSLhsl(236, 40%, 63%)
HSVhsv(236, 39%, 78%)
CMYKcmyk(38.9%, 36.4%, 0%, 22.4%)
CIE-LABlab(55.14, 16.01, -38.09)
CIE-LCHlch(55.14, 41.31, 292.80°)
OKLaboklab(61.93% 0.0183 -0.1068)
OKLCHoklch(61.93% 0.108 279.7)
XYZxyz(25.5361, 23.0629, 56.5212)
Luminance0.2306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EC6 #C6C179
analogous
#79A4C6 #797EC6 #9B79C6
triadic
#797EC6 #C6797E #7EC679
tetradic
#797EC6 #C679A4 #C6C179 #79C69B
square
#797EC6 #C679A4 #C6C179 #79C69B
split-complementary
#797EC6 #C69B79 #A4C679
monochromatic
#3B408A #4E55B4 #797EC6 #A4A7D8 #CFD1EB

Accessibility & contrast

On white

3.74
#797EC6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#797EC6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EC6
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EC6#FFFFFF#000000##000000
##797EC61.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6687C9
Deuteranopia (green-blind)
#6281C4
Tritanopia (blue-blind)
#628C99
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797ec6;
/* rgb */ color: rgb(121, 126, 198);
/* oklch */ color: oklch(61.9% 0.108 279.7);
Tailwind
colors: {
  custom: {
    50: '#a2a3d7',
    500: '#797ec6',
    950: '#000000',
  },
}
SCSS
$custom: #797ec6;
$custom-light: #a2a3d7;
$custom-dark: #000000;
JSON
{
  "hex": "#797ec6",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 198
  },
  "hsl": {
    "h": 236.104,
    "s": 40.314,
    "l": 62.549
  },
  "oklch": {
    "l": 0.61929,
    "c": 0.10837,
    "h": 279.7
  },
  "luminance": 0.23064
}

Semantic roles & 50–950 ramp

primary
#797EC6
secondary
#DBDABF
accent
#AB32B3
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#0F0F14
muted
#7F7F83

Preview Lab

Preview with #797EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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