#797CC2#797CC2

#797CC2 is a mid, moderate blue. Relative luminance 0.224; OKLCH L 61.3% C 0.105 H 280.9°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#797CC2
RGBrgb(121, 124, 194)
HSLhsl(238, 37%, 62%)
HSVhsv(238, 38%, 76%)
CMYKcmyk(37.6%, 36.1%, 0%, 23.9%)
CIE-LABlab(54.42, 16.08, -36.93)
CIE-LCHlch(54.42, 40.28, 293.53°)
OKLaboklab(61.32% 0.02 -0.1035)
OKLCHoklch(61.32% 0.105 280.9)
XYZxyz(24.8276, 22.3744, 54.0390)
Luminance0.2238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CC2 #C2BF79
analogous
#79A1C2 #797CC2 #9B79C2
triadic
#797CC2 #C2797C #7CC279
tetradic
#797CC2 #C279A1 #C2BF79 #79C29B
square
#797CC2 #C279A1 #C2BF79 #79C29B
split-complementary
#797CC2 #C29B79 #A1C279
monochromatic
#3C3F84 #4F53AE #797CC2 #A3A5D5 #CDCEE8

Accessibility & contrast

On white

3.84
#797CC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#797CC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CC2
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CC2#FFFFFF#000000##000000
##797CC21.003.845.485.48
#FFFFFF3.841.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6585C5
Deuteranopia (green-blind)
#6180C0
Tritanopia (blue-blind)
#648A96
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797cc2;
/* rgb */ color: rgb(121, 124, 194);
/* oklch */ color: oklch(61.3% 0.105 280.9);
Tailwind
colors: {
  custom: {
    50: '#a2a1d4',
    500: '#797cc2',
    950: '#000000',
  },
}
SCSS
$custom: #797cc2;
$custom-light: #a2a1d4;
$custom-dark: #000000;
JSON
{
  "hex": "#797cc2",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 194
  },
  "hsl": {
    "h": 237.534,
    "s": 37.436,
    "l": 61.765
  },
  "oklch": {
    "l": 0.61318,
    "c": 0.10538,
    "h": 280.9
  },
  "luminance": 0.22375
}

Semantic roles & 50–950 ramp

primary
#797CC2
secondary
#D9D8BE
accent
#AB35B0
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0F14
muted
#7F7E83

Preview Lab

Preview with #797CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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