#797CC3#797CC3

#797CC3 is a mid, moderate blue. Relative luminance 0.224; OKLCH L 61.4% C 0.107 H 280.9°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#797CC3
RGBrgb(121, 124, 195)
HSLhsl(238, 38%, 62%)
HSVhsv(238, 38%, 76%)
CMYKcmyk(37.9%, 36.4%, 0%, 23.5%)
CIE-LABlab(54.47, 16.36, -37.43)
CIE-LCHlch(54.47, 40.85, 293.61°)
OKLaboklab(61.37% 0.0202 -0.1049)
OKLCHoklch(61.37% 0.107 280.9)
XYZxyz(24.9403, 22.4194, 54.6325)
Luminance0.2242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CC3 #C3C079
analogous
#79A1C3 #797CC3 #9B79C3
triadic
#797CC3 #C3797C #7CC379
tetradic
#797CC3 #C379A1 #C3C079 #79C39B
square
#797CC3 #C379A1 #C3C079 #79C39B
split-complementary
#797CC3 #C39B79 #A1C379
monochromatic
#3C3F86 #4F53B0 #797CC3 #A3A5D6 #CECFE9

Accessibility & contrast

On white

3.83
#797CC3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#797CC3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CC3
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CC3#FFFFFF#000000##000000
##797CC31.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6585C6
Deuteranopia (green-blind)
#6180C1
Tritanopia (blue-blind)
#648A96
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797cc3;
/* rgb */ color: rgb(121, 124, 195);
/* oklch */ color: oklch(61.4% 0.107 280.9);
Tailwind
colors: {
  custom: {
    50: '#a2a1d5',
    500: '#797cc3',
    950: '#000000',
  },
}
SCSS
$custom: #797cc3;
$custom-light: #a2a1d5;
$custom-dark: #000000;
JSON
{
  "hex": "#797cc3",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 195
  },
  "hsl": {
    "h": 237.568,
    "s": 38.144,
    "l": 61.961
  },
  "oklch": {
    "l": 0.61369,
    "c": 0.10684,
    "h": 280.9
  },
  "luminance": 0.2242
}

Semantic roles & 50–950 ramp

primary
#797CC3
secondary
#DAD8BE
accent
#AC34B1
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0F14
muted
#7F7E83

Preview Lab

Preview with #797CC3

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

Preview Lab → · Contrast checker → · Palette generator →

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