#797EC1#797EC1

#797EC1 is a mid, moderate blue. Relative luminance 0.228; OKLCH L 61.7% C 0.101 H 279.7°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#797EC1
RGBrgb(121, 126, 193)
HSLhsl(236, 37%, 62%)
HSVhsv(236, 37%, 76%)
CMYKcmyk(37.3%, 34.7%, 0%, 24.3%)
CIE-LABlab(54.90, 14.61, -35.61)
CIE-LCHlch(54.90, 38.49, 292.31°)
OKLaboklab(61.67% 0.0171 -0.0996)
OKLCHoklch(61.67% 0.101 279.7)
XYZxyz(24.9689, 22.8360, 53.5339)
Luminance0.2284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EC1 #C1BC79
analogous
#79A2C1 #797EC1 #9879C1
triadic
#797EC1 #C1797E #7EC179
tetradic
#797EC1 #C179A2 #C1BC79 #79C198
square
#797EC1 #C179A2 #C1BC79 #79C198
split-complementary
#797EC1 #C19879 #A2C179
monochromatic
#3D4183 #5056AD #797EC1 #A3A6D4 #CDCFE8

Accessibility & contrast

On white

3.77
#797EC1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#797EC1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EC1
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EC1#FFFFFF#000000##000000
##797EC11.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6886C4
Deuteranopia (green-blind)
#6481BF
Tritanopia (blue-blind)
#648B96
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797ec1;
/* rgb */ color: rgb(121, 126, 193);
/* oklch */ color: oklch(61.7% 0.101 279.7);
Tailwind
colors: {
  custom: {
    50: '#a2a3d4',
    500: '#797ec1',
    950: '#000000',
  },
}
SCSS
$custom: #797ec1;
$custom-light: #a2a3d4;
$custom-dark: #000000;
JSON
{
  "hex": "#797ec1",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 193
  },
  "hsl": {
    "h": 235.833,
    "s": 36.735,
    "l": 61.569
  },
  "oklch": {
    "l": 0.61672,
    "c": 0.10108,
    "h": 279.7
  },
  "luminance": 0.22837
}

Semantic roles & 50–950 ramp

primary
#797EC1
secondary
#D8D6BE
accent
#A736B0
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#0F0F14
muted
#7F7F83

Preview Lab

Preview with #797EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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