#797BCE#797BCE

#797BCE is a mid, vivid blue. Relative luminance 0.227; OKLCH L 61.8% C 0.124 H 281.1°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#797BCE
RGBrgb(121, 123, 206)
HSLhsl(239, 46%, 64%)
HSVhsv(239, 41%, 81%)
CMYKcmyk(41.3%, 40.3%, 0%, 19.2%)
CIE-LABlab(54.75, 20.07, -43.24)
CIE-LCHlch(54.75, 47.67, 294.89°)
OKLaboklab(61.76% 0.0238 -0.1218)
OKLCHoklch(61.76% 0.124 281.1)
XYZxyz(26.1054, 22.6860, 61.3839)
Luminance0.2269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BCE #CECC79
analogous
#79A6CE #797BCE #A279CE
triadic
#797BCE #CE797B #7BCE79
tetradic
#797BCE #CE79A6 #CECC79 #79CEA2
square
#797BCE #CE79A6 #CECC79 #79CEA2
split-complementary
#797BCE #CEA279 #A6CE79
monochromatic
#373996 #4C4FBE #797BCE #A6A7DE #D3D3EF

Accessibility & contrast

On white

3.79
#797BCE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#797BCE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BCE
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BCE#FFFFFF#000000##000000
##797BCE1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E86D1
Deuteranopia (green-blind)
#5980CC
Tritanopia (blue-blind)
#5F8C9A
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797bce;
/* rgb */ color: rgb(121, 123, 206);
/* oklch */ color: oklch(61.8% 0.124 281.1);
Tailwind
colors: {
  custom: {
    50: '#a3a1dd',
    500: '#797bce',
    950: '#000000',
  },
}
SCSS
$custom: #797bce;
$custom-light: #a3a1dd;
$custom-dark: #000000;
JSON
{
  "hex": "#797bce",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 206
  },
  "hsl": {
    "h": 238.588,
    "s": 46.448,
    "l": 64.118
  },
  "oklch": {
    "l": 0.61759,
    "c": 0.12414,
    "h": 281.1
  },
  "luminance": 0.22687
}

Semantic roles & 50–950 ramp

primary
#797BCE
secondary
#E0E0C3
accent
#B62CBA
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #797BCE

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

Preview Lab → · Contrast checker → · Palette generator →

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