#797DC5#797DC5

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

Color values

HEX#797DC5
RGBrgb(121, 125, 197)
HSLhsl(237, 40%, 62%)
HSVhsv(237, 39%, 77%)
CMYKcmyk(38.6%, 36.5%, 0%, 22.7%)
CIE-LABlab(54.83, 16.32, -38.00)
CIE-LCHlch(54.83, 41.36, 293.24°)
OKLaboklab(61.68% 0.0194 -0.1066)
OKLCHoklch(61.68% 0.108 280.3)
XYZxyz(25.2939, 22.7624, 55.8734)
Luminance0.2276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DC5 #C5C179
analogous
#79A3C5 #797DC5 #9B79C5
triadic
#797DC5 #C5797D #7DC579
tetradic
#797DC5 #C579A3 #C5C179 #79C59B
square
#797DC5 #C579A3 #C5C179 #79C59B
split-complementary
#797DC5 #C59B79 #A3C579
monochromatic
#3B3F89 #4E54B3 #797DC5 #A4A6D7 #CED0EA

Accessibility & contrast

On white

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

On black

5.55
#797DC5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DC5
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DC5#FFFFFF#000000##000000
##797DC51.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6586C8
Deuteranopia (green-blind)
#6181C3
Tritanopia (blue-blind)
#638B98
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797dc5;
/* rgb */ color: rgb(121, 125, 197);
/* oklch */ color: oklch(61.7% 0.108 280.3);
Tailwind
colors: {
  custom: {
    50: '#a2a2d7',
    500: '#797dc5',
    950: '#000000',
  },
}
SCSS
$custom: #797dc5;
$custom-light: #a2a2d7;
$custom-dark: #000000;
JSON
{
  "hex": "#797dc5",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 197
  },
  "hsl": {
    "h": 236.842,
    "s": 39.583,
    "l": 62.353
  },
  "oklch": {
    "l": 0.61675,
    "c": 0.10833,
    "h": 280.3
  },
  "luminance": 0.22763
}

Semantic roles & 50–950 ramp

primary
#797DC5
secondary
#DBD9BF
accent
#AC33B3
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0F14
muted
#7F7E83

Preview Lab

Preview with #797DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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