#797FC3#797FC3

#797FC3 is a mid, moderate blue. Relative luminance 0.232; OKLCH L 62.0% C 0.103 H 279.1°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#797FC3
RGBrgb(121, 127, 195)
HSLhsl(235, 38%, 62%)
HSVhsv(235, 38%, 76%)
CMYKcmyk(37.9%, 34.9%, 0%, 23.5%)
CIE-LABlab(55.26, 14.57, -36.19)
CIE-LCHlch(55.26, 39.01, 291.94°)
OKLaboklab(61.98% 0.0162 -0.1013)
OKLCHoklch(61.98% 0.103 279.1)
XYZxyz(25.3220, 23.1828, 54.7597)
Luminance0.2318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FC3 #C3BD79
analogous
#79A4C3 #797FC3 #9879C3
triadic
#797FC3 #C3797F #7FC379
tetradic
#797FC3 #C379A4 #C3BD79 #79C398
square
#797FC3 #C379A4 #C3BD79 #79C398
split-complementary
#797FC3 #C39879 #A4C379
monochromatic
#3C4286 #4F57B0 #797FC3 #A3A7D6 #CED0E9

Accessibility & contrast

On white

3.73
#797FC3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#797FC3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FC3
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FC3#FFFFFF#000000##000000
##797FC31.003.735.645.64
#FFFFFF3.731.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6987C6
Deuteranopia (green-blind)
#6482C1
Tritanopia (blue-blind)
#648C98
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797fc3;
/* rgb */ color: rgb(121, 127, 195);
/* oklch */ color: oklch(62.0% 0.103 279.1);
Tailwind
colors: {
  custom: {
    50: '#a2a4d5',
    500: '#797fc3',
    950: '#000000',
  },
}
SCSS
$custom: #797fc3;
$custom-light: #a2a4d5;
$custom-dark: #000000;
JSON
{
  "hex": "#797fc3",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 195
  },
  "hsl": {
    "h": 235.135,
    "s": 38.144,
    "l": 61.961
  },
  "oklch": {
    "l": 0.61977,
    "c": 0.1026,
    "h": 279.1
  },
  "luminance": 0.23184
}

Semantic roles & 50–950 ramp

primary
#797FC3
secondary
#DAD7BE
accent
#A734B1
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#0F0F14
muted
#7F7F83

Preview Lab

Preview with #797FC3

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

Preview Lab → · Contrast checker → · Palette generator →

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