#797FC5#797FC5

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

Color values

HEX#797FC5
RGBrgb(121, 127, 197)
HSLhsl(235, 40%, 62%)
HSVhsv(235, 39%, 77%)
CMYKcmyk(38.6%, 35.5%, 0%, 22.7%)
CIE-LABlab(55.35, 15.13, -37.18)
CIE-LCHlch(55.35, 40.14, 292.15°)
OKLaboklab(62.08% 0.0167 -0.1042)
OKLCHoklch(62.08% 0.106 279.1)
XYZxyz(25.5497, 23.2739, 55.9586)
Luminance0.2328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FC5 #C5BF79
analogous
#79A5C5 #797FC5 #9979C5
triadic
#797FC5 #C5797F #7FC579
tetradic
#797FC5 #C579A5 #C5BF79 #79C599
square
#797FC5 #C579A5 #C5BF79 #79C599
split-complementary
#797FC5 #C59979 #A5C579
monochromatic
#3B4189 #4E56B3 #797FC5 #A4A8D7 #CED1EA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797FC5#FFFFFF#000000##000000
##797FC51.003.715.655.65
#FFFFFF3.711.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6887C8
Deuteranopia (green-blind)
#6382C3
Tritanopia (blue-blind)
#638D99
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #797fc5;
/* rgb */ color: rgb(121, 127, 197);
/* oklch */ color: oklch(62.1% 0.106 279.1);
Tailwind
colors: {
  custom: {
    50: '#a2a4d7',
    500: '#797fc5',
    950: '#000000',
  },
}
SCSS
$custom: #797fc5;
$custom-light: #a2a4d7;
$custom-dark: #000000;
JSON
{
  "hex": "#797fc5",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 197
  },
  "hsl": {
    "h": 235.263,
    "s": 39.583,
    "l": 62.353
  },
  "oklch": {
    "l": 0.6208,
    "c": 0.10552,
    "h": 279.1
  },
  "luminance": 0.23275
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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