#797EBC#797EBC

#797EBC is a mid, moderate blue. Relative luminance 0.226; OKLCH L 61.4% C 0.094 H 279.7°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#797EBC
RGBrgb(121, 126, 188)
HSLhsl(236, 33%, 61%)
HSVhsv(236, 36%, 74%)
CMYKcmyk(35.6%, 33%, 0%, 26.3%)
CIE-LABlab(54.68, 13.23, -33.11)
CIE-LCHlch(54.68, 35.65, 291.78°)
OKLaboklab(61.42% 0.0158 -0.0924)
OKLCHoklch(61.42% 0.094 279.7)
XYZxyz(24.4205, 22.6166, 50.6460)
Luminance0.2262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EBC #BCB779
analogous
#799FBC #797EBC #9579BC
triadic
#797EBC #BC797E #7EBC79
tetradic
#797EBC #BC799F #BCB779 #79BC95
square
#797EBC #BC799F #BCB779 #79BC95
split-complementary
#797EBC #BC9579 #9FBC79
monochromatic
#3E437C #5359A5 #797EBC #A2A5D0 #CBCDE5

Accessibility & contrast

On white

3.80
#797EBC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#797EBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EBC
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EBC#FFFFFF#000000##000000
##797EBC1.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B85BF
Deuteranopia (green-blind)
#6781BA
Tritanopia (blue-blind)
#668A94
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797ebc;
/* rgb */ color: rgb(121, 126, 188);
/* oklch */ color: oklch(61.4% 0.094 279.7);
Tailwind
colors: {
  custom: {
    50: '#a2a3d0',
    500: '#797ebc',
    950: '#000000',
  },
}
SCSS
$custom: #797ebc;
$custom-light: #a2a3d0;
$custom-dark: #000000;
JSON
{
  "hex": "#797ebc",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 188
  },
  "hsl": {
    "h": 235.522,
    "s": 33.333,
    "l": 60.588
  },
  "oklch": {
    "l": 0.61422,
    "c": 0.09375,
    "h": 279.7
  },
  "luminance": 0.22617
}

Semantic roles & 50–950 ramp

primary
#797EBC
secondary
#D5D3BC
accent
#A439AC
background
#FAFAFC
surface
#F4F3F9
border
#CECDD2
text
#0F0F14
muted
#7F7F82

Preview Lab

Preview with #797EBC

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

Preview Lab → · Contrast checker → · Palette generator →

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