#797EC7#797EC7

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

Color values

HEX#797EC7
RGBrgb(121, 126, 199)
HSLhsl(236, 41%, 63%)
HSVhsv(236, 39%, 78%)
CMYKcmyk(39.2%, 36.7%, 0%, 22%)
CIE-LABlab(55.18, 16.29, -38.58)
CIE-LCHlch(55.18, 41.88, 292.89°)
OKLaboklab(61.98% 0.0185 -0.1082)
OKLCHoklch(61.98% 0.11 279.7)
XYZxyz(25.6518, 23.1091, 57.1307)
Luminance0.2311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EC7 #C7C279
analogous
#79A5C7 #797EC7 #9B79C7
triadic
#797EC7 #C7797E #7EC779
tetradic
#797EC7 #C779A5 #C7C279 #79C79B
square
#797EC7 #C779A5 #C7C279 #79C79B
split-complementary
#797EC7 #C79B79 #A5C779
monochromatic
#3A3F8B #4E54B5 #797EC7 #A4A8D9 #CFD1EB

Accessibility & contrast

On white

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

On black

5.62
#797EC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EC7
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EC7#FFFFFF#000000##000000
##797EC71.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6687CA
Deuteranopia (green-blind)
#6181C5
Tritanopia (blue-blind)
#628C99
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797ec7;
/* rgb */ color: rgb(121, 126, 199);
/* oklch */ color: oklch(62.0% 0.110 279.7);
Tailwind
colors: {
  custom: {
    50: '#a3a3d8',
    500: '#797ec7',
    950: '#000000',
  },
}
SCSS
$custom: #797ec7;
$custom-light: #a3a3d8;
$custom-dark: #000000;
JSON
{
  "hex": "#797ec7",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 199
  },
  "hsl": {
    "h": 236.154,
    "s": 41.053,
    "l": 62.745
  },
  "oklch": {
    "l": 0.61981,
    "c": 0.10982,
    "h": 279.7
  },
  "luminance": 0.2311
}

Semantic roles & 50–950 ramp

primary
#797EC7
secondary
#DCDAC0
accent
#AC31B4
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#0F0F14
muted
#7F7F83

Preview Lab

Preview with #797EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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