#797BC2#797BC2

#797BC2 is a mid, moderate blue. Relative luminance 0.221; OKLCH L 61.1% C 0.107 H 281.5°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#797BC2
RGBrgb(121, 123, 194)
HSLhsl(238, 37%, 62%)
HSVhsv(238, 38%, 76%)
CMYKcmyk(37.6%, 36.6%, 0%, 23.9%)
CIE-LABlab(54.16, 16.67, -37.34)
CIE-LCHlch(54.16, 40.90, 294.06°)
OKLaboklab(61.12% 0.0213 -0.1047)
OKLCHoklch(61.12% 0.107 281.5)
XYZxyz(24.7030, 22.1250, 53.9975)
Luminance0.2213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BC2 #C2C079
analogous
#79A0C2 #797BC2 #9C79C2
triadic
#797BC2 #C2797B #7BC279
tetradic
#797BC2 #C279A0 #C2C079 #79C29C
square
#797BC2 #C279A0 #C2C079 #79C29C
split-complementary
#797BC2 #C29C79 #A0C279
monochromatic
#3C3E84 #4F52AE #797BC2 #A3A4D5 #CDCEE8

Accessibility & contrast

On white

3.87
#797BC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#797BC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BC2
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BC2#FFFFFF#000000##000000
##797BC21.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6484C5
Deuteranopia (green-blind)
#607FC0
Tritanopia (blue-blind)
#648995
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797bc2;
/* rgb */ color: rgb(121, 123, 194);
/* oklch */ color: oklch(61.1% 0.107 281.5);
Tailwind
colors: {
  custom: {
    50: '#a2a1d5',
    500: '#797bc2',
    950: '#000000',
  },
}
SCSS
$custom: #797bc2;
$custom-light: #a2a1d5;
$custom-dark: #000000;
JSON
{
  "hex": "#797bc2",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 194
  },
  "hsl": {
    "h": 238.356,
    "s": 37.436,
    "l": 61.765
  },
  "oklch": {
    "l": 0.61116,
    "c": 0.10682,
    "h": 281.5
  },
  "luminance": 0.22126
}

Semantic roles & 50–950 ramp

primary
#797BC2
secondary
#D9D8BE
accent
#AD35B0
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0E14
muted
#7F7E83

Preview Lab

Preview with #797BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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