#797FC7#797FC7

#797FC7 is a light, moderate blue. Relative luminance 0.234; OKLCH L 62.2% C 0.108 H 279.1°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#797FC7
RGBrgb(121, 127, 199)
HSLhsl(235, 41%, 63%)
HSVhsv(235, 39%, 78%)
CMYKcmyk(39.2%, 36.2%, 0%, 22%)
CIE-LABlab(55.45, 15.69, -38.17)
CIE-LCHlch(55.45, 41.27, 292.35°)
OKLaboklab(62.18% 0.0172 -0.107)
OKLCHoklch(62.18% 0.108 279.1)
XYZxyz(25.7803, 23.3662, 57.1735)
Luminance0.2337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FC7 #C7C179
analogous
#79A6C7 #797FC7 #9A79C7
triadic
#797FC7 #C7797F #7FC779
tetradic
#797FC7 #C779A6 #C7C179 #79C79A
square
#797FC7 #C779A6 #C7C179 #79C79A
split-complementary
#797FC7 #C79A79 #A6C779
monochromatic
#3A408B #4E56B5 #797FC7 #A4A8D9 #CFD1EB

Accessibility & contrast

On white

3.70
#797FC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#797FC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FC7
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FC7#FFFFFF#000000##000000
##797FC71.003.705.675.67
#FFFFFF3.701.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6788CA
Deuteranopia (green-blind)
#6282C5
Tritanopia (blue-blind)
#628D9A
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #797fc7;
/* rgb */ color: rgb(121, 127, 199);
/* oklch */ color: oklch(62.2% 0.108 279.1);
Tailwind
colors: {
  custom: {
    50: '#a3a4d8',
    500: '#797fc7',
    950: '#000000',
  },
}
SCSS
$custom: #797fc7;
$custom-light: #a3a4d8;
$custom-dark: #000000;
JSON
{
  "hex": "#797fc7",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 199
  },
  "hsl": {
    "h": 235.385,
    "s": 41.053,
    "l": 62.745
  },
  "oklch": {
    "l": 0.62183,
    "c": 0.10842,
    "h": 279.1
  },
  "luminance": 0.23367
}

Semantic roles & 50–950 ramp

primary
#797FC7
secondary
#DCDAC0
accent
#AA31B4
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#0F0F14
muted
#7F7F83

Preview Lab

Preview with #797FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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