#797FC2#797FC2

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

Color values

HEX#797FC2
RGBrgb(121, 127, 194)
HSLhsl(235, 37%, 62%)
HSVhsv(235, 38%, 76%)
CMYKcmyk(37.6%, 34.5%, 0%, 23.9%)
CIE-LABlab(55.21, 14.29, -35.69)
CIE-LCHlch(55.21, 38.45, 291.83°)
OKLaboklab(61.93% 0.016 -0.0999)
OKLCHoklch(61.93% 0.101 279.1)
XYZxyz(25.2093, 23.1378, 54.1662)
Luminance0.2314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FC2 #C2BC79
analogous
#79A4C2 #797FC2 #9879C2
triadic
#797FC2 #C2797F #7FC279
tetradic
#797FC2 #C279A4 #C2BC79 #79C298
square
#797FC2 #C279A4 #C2BC79 #79C298
split-complementary
#797FC2 #C29879 #A4C279
monochromatic
#3C4284 #4F57AE #797FC2 #A3A7D5 #CDCFE8

Accessibility & contrast

On white

3.73
#797FC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#797FC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FC2
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FC2#FFFFFF#000000##000000
##797FC21.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6987C5
Deuteranopia (green-blind)
#6582C0
Tritanopia (blue-blind)
#648C97
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797fc2;
/* rgb */ color: rgb(121, 127, 194);
/* oklch */ color: oklch(61.9% 0.101 279.1);
Tailwind
colors: {
  custom: {
    50: '#a2a4d4',
    500: '#797fc2',
    950: '#000000',
  },
}
SCSS
$custom: #797fc2;
$custom-light: #a2a4d4;
$custom-dark: #000000;
JSON
{
  "hex": "#797fc2",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 194
  },
  "hsl": {
    "h": 235.068,
    "s": 37.436,
    "l": 61.765
  },
  "oklch": {
    "l": 0.61927,
    "c": 0.10114,
    "h": 279.1
  },
  "luminance": 0.23139
}

Semantic roles & 50–950 ramp

primary
#797FC2
secondary
#D9D7BE
accent
#A635B0
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#0F0F14
muted
#7F7F83

Preview Lab

Preview with #797FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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