#797FC6#797FC6

#797FC6 is a light, moderate blue. Relative luminance 0.233; OKLCH L 62.1% C 0.107 H 279.1°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#797FC6
RGBrgb(121, 127, 198)
HSLhsl(235, 40%, 63%)
HSVhsv(235, 39%, 78%)
CMYKcmyk(38.9%, 35.9%, 0%, 22.4%)
CIE-LABlab(55.40, 15.41, -37.67)
CIE-LCHlch(55.40, 40.70, 292.25°)
OKLaboklab(62.13% 0.0169 -0.1056)
OKLCHoklch(62.13% 0.107 279.1)
XYZxyz(25.6646, 23.3199, 56.5641)
Luminance0.2332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FC6 #C6C079
analogous
#79A5C6 #797FC6 #9A79C6
triadic
#797FC6 #C6797F #7FC679
tetradic
#797FC6 #C679A5 #C6C079 #79C69A
square
#797FC6 #C679A5 #C6C079 #79C69A
split-complementary
#797FC6 #C69A79 #A5C679
monochromatic
#3B418A #4E56B4 #797FC6 #A4A8D8 #CFD1EB

Accessibility & contrast

On white

3.71
#797FC6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#797FC6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FC6
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FC6#FFFFFF#000000##000000
##797FC61.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6788C9
Deuteranopia (green-blind)
#6382C4
Tritanopia (blue-blind)
#628D99
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #797fc6;
/* rgb */ color: rgb(121, 127, 198);
/* oklch */ color: oklch(62.1% 0.107 279.1);
Tailwind
colors: {
  custom: {
    50: '#a2a4d7',
    500: '#797fc6',
    950: '#000000',
  },
}
SCSS
$custom: #797fc6;
$custom-light: #a2a4d7;
$custom-dark: #000000;
JSON
{
  "hex": "#797fc6",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 198
  },
  "hsl": {
    "h": 235.325,
    "s": 40.314,
    "l": 62.549
  },
  "oklch": {
    "l": 0.62131,
    "c": 0.10697,
    "h": 279.1
  },
  "luminance": 0.23321
}

Semantic roles & 50–950 ramp

primary
#797FC6
secondary
#DBD9BF
accent
#A932B3
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#0F0F14
muted
#7F7F83

Preview Lab

Preview with #797FC6

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

Preview Lab → · Contrast checker → · Palette generator →

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