#797DBC#797DBC

#797DBC is a mid, moderate blue. Relative luminance 0.224; OKLCH L 61.2% C 0.095 H 280.4°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#797DBC
RGBrgb(121, 125, 188)
HSLhsl(236, 33%, 61%)
HSVhsv(236, 36%, 74%)
CMYKcmyk(35.6%, 33.5%, 0%, 26.3%)
CIE-LABlab(54.41, 13.82, -33.52)
CIE-LCHlch(54.41, 36.26, 292.41°)
OKLaboklab(61.22% 0.0172 -0.0936)
OKLCHoklch(61.22% 0.095 280.4)
XYZxyz(24.2933, 22.3622, 50.6035)
Luminance0.2236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DBC #BCB879
analogous
#799EBC #797DBC #9679BC
triadic
#797DBC #BC797D #7DBC79
tetradic
#797DBC #BC799E #BCB879 #79BC96
square
#797DBC #BC799E #BCB879 #79BC96
split-complementary
#797DBC #BC9679 #9EBC79
monochromatic
#3E427C #5358A5 #797DBC #A2A5D0 #CBCCE5

Accessibility & contrast

On white

3.84
#797DBC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#797DBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DBC
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DBC#FFFFFF#000000##000000
##797DBC1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6985BF
Deuteranopia (green-blind)
#6680BA
Tritanopia (blue-blind)
#678994
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797dbc;
/* rgb */ color: rgb(121, 125, 188);
/* oklch */ color: oklch(61.2% 0.095 280.4);
Tailwind
colors: {
  custom: {
    50: '#a2a2d0',
    500: '#797dbc',
    950: '#000000',
  },
}
SCSS
$custom: #797dbc;
$custom-light: #a2a2d0;
$custom-dark: #000000;
JSON
{
  "hex": "#797dbc",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 188
  },
  "hsl": {
    "h": 236.418,
    "s": 33.333,
    "l": 60.588
  },
  "oklch": {
    "l": 0.61217,
    "c": 0.09517,
    "h": 280.4
  },
  "luminance": 0.22363
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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