#797BBB#797BBB

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

Color values

HEX#797BBB
RGBrgb(121, 123, 187)
HSLhsl(238, 33%, 60%)
HSVhsv(238, 35%, 73%)
CMYKcmyk(35.3%, 34.2%, 0%, 26.7%)
CIE-LABlab(53.83, 14.74, -33.85)
CIE-LCHlch(53.83, 36.92, 293.53°)
OKLaboklab(60.76% 0.0197 -0.0946)
OKLCHoklch(60.76% 0.097 281.7)
XYZxyz(23.9353, 21.8179, 49.9542)
Luminance0.2182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BBB #BBB979
analogous
#799CBB #797BBB #9879BB
triadic
#797BBB #BB797B #7BBB79
tetradic
#797BBB #BB799C #BBB979 #79BB98
square
#797BBB #BB799C #BBB979 #79BB98
split-complementary
#797BBB #BB9879 #9CBB79
monochromatic
#3E407B #5356A4 #797BBB #A2A3D0 #CACBE4

Accessibility & contrast

On white

3.92
#797BBB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#797BBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BBB
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BBB#FFFFFF#000000##000000
##797BBB1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6783BE
Deuteranopia (green-blind)
#647EB9
Tritanopia (blue-blind)
#678792
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797bbb;
/* rgb */ color: rgb(121, 123, 187);
/* oklch */ color: oklch(60.8% 0.097 281.7);
Tailwind
colors: {
  custom: {
    50: '#a2a1cf',
    500: '#797bbb',
    950: '#000000',
  },
}
SCSS
$custom: #797bbb;
$custom-light: #a2a1cf;
$custom-dark: #000000;
JSON
{
  "hex": "#797bbb",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 187
  },
  "hsl": {
    "h": 238.182,
    "s": 32.673,
    "l": 60.392
  },
  "oklch": {
    "l": 0.60758,
    "c": 0.09658,
    "h": 281.7
  },
  "luminance": 0.21819
}

Semantic roles & 50–950 ramp

primary
#797BBB
secondary
#D5D4BB
accent
#A83AAB
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0E14
muted
#7F7E82

Preview Lab

Preview with #797BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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