#797CBB#797CBB

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

Color values

HEX#797CBB
RGBrgb(121, 124, 187)
HSLhsl(237, 33%, 60%)
HSVhsv(237, 35%, 73%)
CMYKcmyk(35.3%, 33.7%, 0%, 26.7%)
CIE-LABlab(54.10, 14.14, -33.44)
CIE-LCHlch(54.10, 36.31, 292.93°)
OKLaboklab(60.96% 0.0183 -0.0934)
OKLCHoklch(60.96% 0.095 281.1)
XYZxyz(24.0599, 22.0673, 49.9958)
Luminance0.2207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CBB #BBB879
analogous
#799DBB #797CBB #9779BB
triadic
#797CBB #BB797C #7CBB79
tetradic
#797CBB #BB799D #BBB879 #79BB97
square
#797CBB #BB799D #BBB879 #79BB97
split-complementary
#797CBB #BB9779 #9DBB79
monochromatic
#3E417B #5357A4 #797CBB #A2A4D0 #CACBE4

Accessibility & contrast

On white

3.88
#797CBB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#797CBB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CBB
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CBB#FFFFFF#000000##000000
##797CBB1.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #797cbb;
/* rgb */ color: rgb(121, 124, 187);
/* oklch */ color: oklch(61.0% 0.095 281.1);
Tailwind
colors: {
  custom: {
    50: '#a2a1cf',
    500: '#797cbb',
    950: '#000000',
  },
}
SCSS
$custom: #797cbb;
$custom-light: #a2a1cf;
$custom-dark: #000000;
JSON
{
  "hex": "#797cbb",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 187
  },
  "hsl": {
    "h": 237.273,
    "s": 32.673,
    "l": 60.392
  },
  "oklch": {
    "l": 0.60962,
    "c": 0.09513,
    "h": 281.1
  },
  "luminance": 0.22068
}

Semantic roles & 50–950 ramp

primary
#797CBB
secondary
#D5D3BB
accent
#A63AAB
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0F14
muted
#7F7E82

Preview Lab

Preview with #797CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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