#797FC4#797FC4

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

Color values

HEX#797FC4
RGBrgb(121, 127, 196)
HSLhsl(235, 39%, 62%)
HSVhsv(235, 38%, 77%)
CMYKcmyk(38.3%, 35.2%, 0%, 23.1%)
CIE-LABlab(55.31, 14.85, -36.68)
CIE-LCHlch(55.31, 39.58, 292.04°)
OKLaboklab(62.03% 0.0165 -0.1027)
OKLCHoklch(62.03% 0.104 279.1)
XYZxyz(25.4355, 23.2282, 55.3572)
Luminance0.2323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FC4 #C4BE79
analogous
#79A5C4 #797FC4 #9979C4
triadic
#797FC4 #C4797F #7FC479
tetradic
#797FC4 #C479A5 #C4BE79 #79C499
square
#797FC4 #C479A5 #C4BE79 #79C499
split-complementary
#797FC4 #C49979 #A5C479
monochromatic
#3B4287 #4F56B1 #797FC4 #A3A8D7 #CED0E9

Accessibility & contrast

On white

3.72
#797FC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#797FC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FC4
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FC4#FFFFFF#000000##000000
##797FC41.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6887C7
Deuteranopia (green-blind)
#6482C2
Tritanopia (blue-blind)
#638C98
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797fc4;
/* rgb */ color: rgb(121, 127, 196);
/* oklch */ color: oklch(62.0% 0.104 279.1);
Tailwind
colors: {
  custom: {
    50: '#a2a4d6',
    500: '#797fc4',
    950: '#000000',
  },
}
SCSS
$custom: #797fc4;
$custom-light: #a2a4d6;
$custom-dark: #000000;
JSON
{
  "hex": "#797fc4",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 196
  },
  "hsl": {
    "h": 235.2,
    "s": 38.86,
    "l": 62.157
  },
  "oklch": {
    "l": 0.62028,
    "c": 0.10406,
    "h": 279.1
  },
  "luminance": 0.23229
}

Semantic roles & 50–950 ramp

primary
#797FC4
secondary
#DAD8BF
accent
#A834B2
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#0F0F14
muted
#7F7F83

Preview Lab

Preview with #797FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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