#797DC6#797DC6

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

Color values

HEX#797DC6
RGBrgb(121, 125, 198)
HSLhsl(237, 40%, 63%)
HSVhsv(237, 39%, 78%)
CMYKcmyk(38.9%, 36.9%, 0%, 22.4%)
CIE-LABlab(54.87, 16.60, -38.50)
CIE-LCHlch(54.87, 41.93, 293.33°)
OKLaboklab(61.73% 0.0196 -0.108)
OKLCHoklch(61.73% 0.11 280.3)
XYZxyz(25.4089, 22.8084, 56.4788)
Luminance0.2281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DC6 #C6C279
analogous
#79A4C6 #797DC6 #9B79C6
triadic
#797DC6 #C6797D #7DC679
tetradic
#797DC6 #C679A4 #C6C279 #79C69B
square
#797DC6 #C679A4 #C6C279 #79C69B
split-complementary
#797DC6 #C69B79 #A4C679
monochromatic
#3B3F8A #4E53B4 #797DC6 #A4A7D8 #CFD0EB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797DC6#FFFFFF#000000##000000
##797DC61.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)
#6586C9
Deuteranopia (green-blind)
#6081C4
Tritanopia (blue-blind)
#628B98
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797dc6;
/* rgb */ color: rgb(121, 125, 198);
/* oklch */ color: oklch(61.7% 0.110 280.3);
Tailwind
colors: {
  custom: {
    50: '#a2a2d7',
    500: '#797dc6',
    950: '#000000',
  },
}
SCSS
$custom: #797dc6;
$custom-light: #a2a2d7;
$custom-dark: #000000;
JSON
{
  "hex": "#797dc6",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 198
  },
  "hsl": {
    "h": 236.883,
    "s": 40.314,
    "l": 62.549
  },
  "oklch": {
    "l": 0.61727,
    "c": 0.10978,
    "h": 280.3
  },
  "luminance": 0.22809
}

Semantic roles & 50–950 ramp

primary
#797DC6
secondary
#DBDABF
accent
#AD32B3
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0F14
muted
#7F7E83

Preview Lab

Preview with #797DC6

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

Preview Lab → · Contrast checker → · Palette generator →

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