#797BC3#797BC3

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

Color values

HEX#797BC3
RGBrgb(121, 123, 195)
HSLhsl(238, 38%, 62%)
HSVhsv(238, 38%, 76%)
CMYKcmyk(37.9%, 36.9%, 0%, 23.5%)
CIE-LABlab(54.21, 16.95, -37.84)
CIE-LCHlch(54.21, 41.46, 294.13°)
OKLaboklab(61.17% 0.0216 -0.1061)
OKLCHoklch(61.17% 0.108 281.5)
XYZxyz(24.8156, 22.1701, 54.5909)
Luminance0.2217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BC3 #C3C179
analogous
#79A0C3 #797BC3 #9C79C3
triadic
#797BC3 #C3797B #7BC379
tetradic
#797BC3 #C379A0 #C3C179 #79C39C
square
#797BC3 #C379A0 #C3C179 #79C39C
split-complementary
#797BC3 #C39C79 #A0C379
monochromatic
#3C3E86 #4F51B0 #797BC3 #A3A5D6 #CECEE9

Accessibility & contrast

On white

3.86
#797BC3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##797BC3#FFFFFF#000000##000000
##797BC31.003.865.435.43
#FFFFFF3.861.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6384C6
Deuteranopia (green-blind)
#607FC1
Tritanopia (blue-blind)
#648996
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797bc3;
/* rgb */ color: rgb(121, 123, 195);
/* oklch */ color: oklch(61.2% 0.108 281.5);
Tailwind
colors: {
  custom: {
    50: '#a2a1d5',
    500: '#797bc3',
    950: '#000000',
  },
}
SCSS
$custom: #797bc3;
$custom-light: #a2a1d5;
$custom-dark: #000000;
JSON
{
  "hex": "#797bc3",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 195
  },
  "hsl": {
    "h": 238.378,
    "s": 38.144,
    "l": 61.961
  },
  "oklch": {
    "l": 0.61168,
    "c": 0.10828,
    "h": 281.5
  },
  "luminance": 0.22171
}

Semantic roles & 50–950 ramp

primary
#797BC3
secondary
#DAD9BE
accent
#AE34B1
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0E14
muted
#7F7E83

Preview Lab

Preview with #797BC3

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

Preview Lab → · Contrast checker → · Palette generator →

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