#797EC4#797EC4

#797EC4 is a mid, moderate blue. Relative luminance 0.230; OKLCH L 61.8% C 0.105 H 279.7°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#797EC4
RGBrgb(121, 126, 196)
HSLhsl(236, 39%, 62%)
HSVhsv(236, 38%, 77%)
CMYKcmyk(38.3%, 35.7%, 0%, 23.1%)
CIE-LABlab(55.04, 15.45, -37.10)
CIE-LCHlch(55.04, 40.18, 292.61°)
OKLaboklab(61.83% 0.0178 -0.1039)
OKLCHoklch(61.83% 0.105 279.7)
XYZxyz(25.3069, 22.9712, 55.3143)
Luminance0.2297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EC4 #C4BF79
analogous
#79A4C4 #797EC4 #9A79C4
triadic
#797EC4 #C4797E #7EC479
tetradic
#797EC4 #C479A4 #C4BF79 #79C49A
square
#797EC4 #C479A4 #C4BF79 #79C49A
split-complementary
#797EC4 #C49A79 #A4C479
monochromatic
#3B4187 #4F55B1 #797EC4 #A3A7D7 #CED0E9

Accessibility & contrast

On white

3.75
#797EC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#797EC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EC4
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EC4#FFFFFF#000000##000000
##797EC41.003.755.595.59
#FFFFFF3.751.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6787C7
Deuteranopia (green-blind)
#6381C2
Tritanopia (blue-blind)
#638C98
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797ec4;
/* rgb */ color: rgb(121, 126, 196);
/* oklch */ color: oklch(61.8% 0.105 279.7);
Tailwind
colors: {
  custom: {
    50: '#a2a3d6',
    500: '#797ec4',
    950: '#000000',
  },
}
SCSS
$custom: #797ec4;
$custom-light: #a2a3d6;
$custom-dark: #000000;
JSON
{
  "hex": "#797ec4",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 196
  },
  "hsl": {
    "h": 236,
    "s": 38.86,
    "l": 62.157
  },
  "oklch": {
    "l": 0.61825,
    "c": 0.10546,
    "h": 279.7
  },
  "luminance": 0.22972
}

Semantic roles & 50–950 ramp

primary
#797EC4
secondary
#DAD8BF
accent
#A934B2
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#0F0F14
muted
#7F7F83

Preview Lab

Preview with #797EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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