#797CC7#797CC7

#797CC7 is a mid, moderate blue. Relative luminance 0.226; OKLCH L 61.6% C 0.113 H 280.8°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#797CC7
RGBrgb(121, 124, 199)
HSLhsl(238, 41%, 63%)
HSVhsv(238, 39%, 78%)
CMYKcmyk(39.2%, 37.7%, 0%, 22%)
CIE-LABlab(54.66, 17.48, -39.40)
CIE-LCHlch(54.66, 43.11, 293.92°)
OKLaboklab(61.58% 0.0211 -0.1106)
OKLCHoklch(61.58% 0.113 280.8)
XYZxyz(25.3986, 22.6028, 57.0463)
Luminance0.2260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CC7 #C7C479
analogous
#79A3C7 #797CC7 #9D79C7
triadic
#797CC7 #C7797C #7CC779
tetradic
#797CC7 #C779A3 #C7C479 #79C79D
square
#797CC7 #C779A3 #C7C479 #79C79D
split-complementary
#797CC7 #C79D79 #A3C779
monochromatic
#3A3D8B #4E52B5 #797CC7 #A4A6D9 #CFD0EB

Accessibility & contrast

On white

3.80
#797CC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#797CC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CC7
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CC7#FFFFFF#000000##000000
##797CC71.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6386CA
Deuteranopia (green-blind)
#5F80C5
Tritanopia (blue-blind)
#628B98
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797cc7;
/* rgb */ color: rgb(121, 124, 199);
/* oklch */ color: oklch(61.6% 0.113 280.8);
Tailwind
colors: {
  custom: {
    50: '#a3a1d8',
    500: '#797cc7',
    950: '#000000',
  },
}
SCSS
$custom: #797cc7;
$custom-light: #a3a1d8;
$custom-dark: #000000;
JSON
{
  "hex": "#797cc7",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 199
  },
  "hsl": {
    "h": 237.692,
    "s": 41.053,
    "l": 62.745
  },
  "oklch": {
    "l": 0.61579,
    "c": 0.11265,
    "h": 280.8
  },
  "luminance": 0.22604
}

Semantic roles & 50–950 ramp

primary
#797CC7
secondary
#DCDBC0
accent
#AF31B4
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0F14
muted
#7F7E83

Preview Lab

Preview with #797CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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