#797BC5#797BC5

#797BC5 is a mid, moderate blue. Relative luminance 0.223; OKLCH L 61.3% C 0.111 H 281.4°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#797BC5
RGBrgb(121, 123, 197)
HSLhsl(238, 40%, 62%)
HSVhsv(238, 39%, 77%)
CMYKcmyk(38.6%, 37.6%, 0%, 22.7%)
CIE-LABlab(54.30, 17.51, -38.83)
CIE-LCHlch(54.30, 42.60, 294.28°)
OKLaboklab(61.27% 0.022 -0.109)
OKLCHoklch(61.27% 0.111 281.4)
XYZxyz(25.0433, 22.2611, 55.7898)
Luminance0.2226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BC5 #C5C379
analogous
#79A1C5 #797BC5 #9D79C5
triadic
#797BC5 #C5797B #7BC579
tetradic
#797BC5 #C579A1 #C5C379 #79C59D
square
#797BC5 #C579A1 #C5C379 #79C59D
split-complementary
#797BC5 #C59D79 #A1C579
monochromatic
#3B3D89 #4E51B3 #797BC5 #A4A5D7 #CECFEA

Accessibility & contrast

On white

3.85
#797BC5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#797BC5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BC5
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BC5#FFFFFF#000000##000000
##797BC51.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6285C8
Deuteranopia (green-blind)
#5F7FC3
Tritanopia (blue-blind)
#638997
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797bc5;
/* rgb */ color: rgb(121, 123, 197);
/* oklch */ color: oklch(61.3% 0.111 281.4);
Tailwind
colors: {
  custom: {
    50: '#a2a1d7',
    500: '#797bc5',
    950: '#000000',
  },
}
SCSS
$custom: #797bc5;
$custom-light: #a2a1d7;
$custom-dark: #000000;
JSON
{
  "hex": "#797bc5",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 197
  },
  "hsl": {
    "h": 238.421,
    "s": 39.583,
    "l": 62.353
  },
  "oklch": {
    "l": 0.61273,
    "c": 0.11118,
    "h": 281.4
  },
  "luminance": 0.22262
}

Semantic roles & 50–950 ramp

primary
#797BC5
secondary
#DBDABF
accent
#AF33B3
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0E14
muted
#7F7E83

Preview Lab

Preview with #797BC5

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

Preview Lab → · Contrast checker → · Palette generator →

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