#797BBC#797BBC

#797BBC is a mid, moderate blue. Relative luminance 0.219; OKLCH L 60.8% C 0.098 H 281.7°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#797BBC
RGBrgb(121, 123, 188)
HSLhsl(238, 33%, 61%)
HSVhsv(238, 36%, 74%)
CMYKcmyk(35.6%, 34.6%, 0%, 26.3%)
CIE-LABlab(53.88, 15.01, -34.35)
CIE-LCHlch(53.88, 37.49, 293.61°)
OKLaboklab(60.81% 0.0199 -0.096)
OKLCHoklch(60.81% 0.098 281.7)
XYZxyz(24.0427, 21.8609, 50.5200)
Luminance0.2186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BBC #BCBA79
analogous
#799CBC #797BBC #9879BC
triadic
#797BBC #BC797B #7BBC79
tetradic
#797BBC #BC799C #BCBA79 #79BC98
square
#797BBC #BC799C #BCBA79 #79BC98
split-complementary
#797BBC #BC9879 #9CBC79
monochromatic
#3E407C #5355A5 #797BBC #A2A3D0 #CBCBE5

Accessibility & contrast

On white

3.91
#797BBC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#797BBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BBC
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BBC#FFFFFF#000000##000000
##797BBC1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6783BF
Deuteranopia (green-blind)
#637FBA
Tritanopia (blue-blind)
#678793
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797bbc;
/* rgb */ color: rgb(121, 123, 188);
/* oklch */ color: oklch(60.8% 0.098 281.7);
Tailwind
colors: {
  custom: {
    50: '#a2a1d0',
    500: '#797bbc',
    950: '#000000',
  },
}
SCSS
$custom: #797bbc;
$custom-light: #a2a1d0;
$custom-dark: #000000;
JSON
{
  "hex": "#797bbc",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 188
  },
  "hsl": {
    "h": 238.209,
    "s": 33.333,
    "l": 60.588
  },
  "oklch": {
    "l": 0.60809,
    "c": 0.09805,
    "h": 281.7
  },
  "luminance": 0.21862
}

Semantic roles & 50–950 ramp

primary
#797BBC
secondary
#D5D4BC
accent
#A939AC
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0E14
muted
#7F7E82

Preview Lab

Preview with #797BBC

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

Preview Lab → · Contrast checker → · Palette generator →

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