#797BB2#797BB2

#797BB2 is a mid, moderate blue. Relative luminance 0.214; OKLCH L 60.3% C 0.083 H 282.0°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#797BB2
RGBrgb(121, 123, 178)
HSLhsl(238, 27%, 59%)
HSVhsv(238, 32%, 70%)
CMYKcmyk(32%, 30.9%, 0%, 30.2%)
CIE-LABlab(53.43, 12.31, -29.31)
CIE-LCHlch(53.43, 31.79, 292.78°)
OKLaboklab(60.32% 0.0173 -0.0815)
OKLCHoklch(60.32% 0.083 282)
XYZxyz(23.0018, 21.4446, 45.0381)
Luminance0.2145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BB2 #B2B079
analogous
#7997B2 #797BB2 #9379B2
triadic
#797BB2 #B2797B #7BB279
tetradic
#797BB2 #B27997 #B2B079 #79B293
square
#797BB2 #B27997 #B2B079 #79B293
split-complementary
#797BB2 #B29379 #97B279
monochromatic
#404270 #575997 #797BB2 #A0A1C8 #C7C8DF

Accessibility & contrast

On white

3.97
#797BB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#797BB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BB2
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BB2#FFFFFF#000000##000000
##797BB21.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B82B4
Deuteranopia (green-blind)
#687EB1
Tritanopia (blue-blind)
#6A858F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797bb2;
/* rgb */ color: rgb(121, 123, 178);
/* oklch */ color: oklch(60.3% 0.083 282.0);
Tailwind
colors: {
  custom: {
    50: '#a1a1c9',
    500: '#797bb2',
    950: '#000000',
  },
}
SCSS
$custom: #797bb2;
$custom-light: #a1a1c9;
$custom-dark: #000000;
JSON
{
  "hex": "#797bb2",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 178
  },
  "hsl": {
    "h": 237.895,
    "s": 27.014,
    "l": 58.627
  },
  "oklch": {
    "l": 0.60318,
    "c": 0.08328,
    "h": 282
  },
  "luminance": 0.21445
}

Semantic roles & 50–950 ramp

primary
#797BB2
secondary
#CFCEB8
accent
#C064C3
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0E13
muted
#7F7E82

Preview Lab

Preview with #797BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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