#797BC7#797BC7

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

Color values

HEX#797BC7
RGBrgb(121, 123, 199)
HSLhsl(238, 41%, 63%)
HSVhsv(238, 39%, 78%)
CMYKcmyk(39.2%, 38.2%, 0%, 22%)
CIE-LABlab(54.40, 18.08, -39.81)
CIE-LCHlch(54.40, 43.73, 294.42°)
OKLaboklab(61.38% 0.0224 -0.1118)
OKLCHoklch(61.38% 0.114 281.3)
XYZxyz(25.2740, 22.3534, 57.0047)
Luminance0.2235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BC7 #C7C579
analogous
#79A2C7 #797BC7 #9E79C7
triadic
#797BC7 #C7797B #7BC779
tetradic
#797BC7 #C779A2 #C7C579 #79C79E
square
#797BC7 #C779A2 #C7C579 #79C79E
split-complementary
#797BC7 #C79E79 #A2C779
monochromatic
#3A3C8B #4E50B5 #797BC7 #A4A6D9 #CFD0EB

Accessibility & contrast

On white

3.84
#797BC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#797BC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BC7
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BC7#FFFFFF#000000##000000
##797BC71.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6185CA
Deuteranopia (green-blind)
#5D7FC5
Tritanopia (blue-blind)
#628A97
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797bc7;
/* rgb */ color: rgb(121, 123, 199);
/* oklch */ color: oklch(61.4% 0.114 281.3);
Tailwind
colors: {
  custom: {
    50: '#a3a1d8',
    500: '#797bc7',
    950: '#000000',
  },
}
SCSS
$custom: #797bc7;
$custom-light: #a3a1d8;
$custom-dark: #000000;
JSON
{
  "hex": "#797bc7",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 199
  },
  "hsl": {
    "h": 238.462,
    "s": 41.053,
    "l": 62.745
  },
  "oklch": {
    "l": 0.61379,
    "c": 0.11407,
    "h": 281.3
  },
  "luminance": 0.22354
}

Semantic roles & 50–950 ramp

primary
#797BC7
secondary
#DCDBC0
accent
#B131B4
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0E14
muted
#7F7E83

Preview Lab

Preview with #797BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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