#797EC0#797EC0

#797EC0 is a mid, moderate blue. Relative luminance 0.228; OKLCH L 61.6% C 0.100 H 279.7°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#797EC0
RGBrgb(121, 126, 192)
HSLhsl(236, 36%, 61%)
HSVhsv(236, 37%, 75%)
CMYKcmyk(37%, 34.4%, 0%, 24.7%)
CIE-LABlab(54.86, 14.33, -35.11)
CIE-LCHlch(54.86, 37.92, 292.21°)
OKLaboklab(61.62% 0.0168 -0.0982)
OKLCHoklch(61.62% 0.1 279.7)
XYZxyz(24.8577, 22.7915, 52.9484)
Luminance0.2279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EC0 #C0BB79
analogous
#79A2C0 #797EC0 #9879C0
triadic
#797EC0 #C0797E #7EC079
tetradic
#797EC0 #C079A2 #C0BB79 #79C098
square
#797EC0 #C079A2 #C0BB79 #79C098
split-complementary
#797EC0 #C09879 #A2C079
monochromatic
#3D4282 #5157AB #797EC0 #A3A6D4 #CCCEE7

Accessibility & contrast

On white

3.78
#797EC0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#797EC0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EC0
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EC0#FFFFFF#000000##000000
##797EC01.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6986C3
Deuteranopia (green-blind)
#6581BE
Tritanopia (blue-blind)
#658B96
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797ec0;
/* rgb */ color: rgb(121, 126, 192);
/* oklch */ color: oklch(61.6% 0.100 279.7);
Tailwind
colors: {
  custom: {
    50: '#a2a3d3',
    500: '#797ec0',
    950: '#000000',
  },
}
SCSS
$custom: #797ec0;
$custom-light: #a2a3d3;
$custom-dark: #000000;
JSON
{
  "hex": "#797ec0",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 192
  },
  "hsl": {
    "h": 235.775,
    "s": 36.041,
    "l": 61.373
  },
  "oklch": {
    "l": 0.61621,
    "c": 0.09962,
    "h": 279.7
  },
  "luminance": 0.22792
}

Semantic roles & 50–950 ramp

primary
#797EC0
secondary
#D8D6BD
accent
#A637AF
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#0F0F14
muted
#7F7F83

Preview Lab

Preview with #797EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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