#797CBC#797CBC

#797CBC is a mid, moderate blue. Relative luminance 0.221; OKLCH L 61.0% C 0.097 H 281.1°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#797CBC
RGBrgb(121, 124, 188)
HSLhsl(237, 33%, 61%)
HSVhsv(237, 36%, 74%)
CMYKcmyk(35.6%, 34%, 0%, 26.3%)
CIE-LABlab(54.14, 14.42, -33.94)
CIE-LCHlch(54.14, 36.87, 293.02°)
OKLaboklab(61.01% 0.0186 -0.0948)
OKLCHoklch(61.01% 0.097 281.1)
XYZxyz(24.1674, 22.1103, 50.5616)
Luminance0.2211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CBC #BCB979
analogous
#799DBC #797CBC #9779BC
triadic
#797CBC #BC797C #7CBC79
tetradic
#797CBC #BC799D #BCB979 #79BC97
square
#797CBC #BC799D #BCB979 #79BC97
split-complementary
#797CBC #BC9779 #9DBC79
monochromatic
#3E417C #5356A5 #797CBC #A2A4D0 #CBCCE5

Accessibility & contrast

On white

3.87
#797CBC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#797CBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CBC
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CBC#FFFFFF#000000##000000
##797CBC1.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6884BF
Deuteranopia (green-blind)
#657FBA
Tritanopia (blue-blind)
#678893
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797cbc;
/* rgb */ color: rgb(121, 124, 188);
/* oklch */ color: oklch(61.0% 0.097 281.1);
Tailwind
colors: {
  custom: {
    50: '#a2a1d0',
    500: '#797cbc',
    950: '#000000',
  },
}
SCSS
$custom: #797cbc;
$custom-light: #a2a1d0;
$custom-dark: #000000;
JSON
{
  "hex": "#797cbc",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 188
  },
  "hsl": {
    "h": 237.313,
    "s": 33.333,
    "l": 60.588
  },
  "oklch": {
    "l": 0.61012,
    "c": 0.09661,
    "h": 281.1
  },
  "luminance": 0.22111
}

Semantic roles & 50–950 ramp

primary
#797CBC
secondary
#D5D4BC
accent
#A739AC
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0F14
muted
#7F7E82

Preview Lab

Preview with #797CBC

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

Preview Lab → · Contrast checker → · Palette generator →

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