#797EC5#797EC5

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

Color values

HEX#797EC5
RGBrgb(121, 126, 197)
HSLhsl(236, 40%, 62%)
HSVhsv(236, 39%, 77%)
CMYKcmyk(38.6%, 36%, 0%, 22.7%)
CIE-LABlab(55.09, 15.73, -37.59)
CIE-LCHlch(55.09, 40.75, 292.70°)
OKLaboklab(61.88% 0.018 -0.1054)
OKLCHoklch(61.88% 0.107 279.7)
XYZxyz(25.4211, 23.0169, 55.9158)
Luminance0.2302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EC5 #C5C079
analogous
#79A4C5 #797EC5 #9A79C5
triadic
#797EC5 #C5797E #7EC579
tetradic
#797EC5 #C579A4 #C5C079 #79C59A
square
#797EC5 #C579A4 #C5C079 #79C59A
split-complementary
#797EC5 #C59A79 #A4C579
monochromatic
#3B4089 #4E55B3 #797EC5 #A4A7D7 #CED0EA

Accessibility & contrast

On white

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

On black

5.60
#797EC5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EC5
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EC5#FFFFFF#000000##000000
##797EC51.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6787C8
Deuteranopia (green-blind)
#6281C3
Tritanopia (blue-blind)
#638C98
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797ec5;
/* rgb */ color: rgb(121, 126, 197);
/* oklch */ color: oklch(61.9% 0.107 279.7);
Tailwind
colors: {
  custom: {
    50: '#a2a3d7',
    500: '#797ec5',
    950: '#000000',
  },
}
SCSS
$custom: #797ec5;
$custom-light: #a2a3d7;
$custom-dark: #000000;
JSON
{
  "hex": "#797ec5",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 197
  },
  "hsl": {
    "h": 236.053,
    "s": 39.583,
    "l": 62.353
  },
  "oklch": {
    "l": 0.61877,
    "c": 0.10692,
    "h": 279.7
  },
  "luminance": 0.23018
}

Semantic roles & 50–950 ramp

primary
#797EC5
secondary
#DBD9BF
accent
#AA33B3
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#0F0F14
muted
#7F7F83

Preview Lab

Preview with #797EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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