#797BAD#797BAD

#797BAD is a mid, moderate blue. Relative luminance 0.212; OKLCH L 60.1% C 0.076 H 282.1°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#797BAD
RGBrgb(121, 123, 173)
HSLhsl(238, 24%, 58%)
HSVhsv(238, 30%, 68%)
CMYKcmyk(30.1%, 28.9%, 0%, 32.2%)
CIE-LABlab(53.22, 10.99, -26.75)
CIE-LCHlch(53.22, 28.92, 292.32°)
OKLaboklab(60.08% 0.0159 -0.0741)
OKLCHoklch(60.08% 0.076 282.1)
XYZxyz(22.5089, 21.2474, 42.4423)
Luminance0.2125 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BAD #ADAB79
analogous
#7995AD #797BAD #9179AD
triadic
#797BAD #AD797B #7BAD79
tetradic
#797BAD #AD7995 #ADAB79 #79AD91
square
#797BAD #AD7995 #ADAB79 #79AD91
split-complementary
#797BAD #AD9179 #95AD79
monochromatic
#41436A #585B90 #797BAD #9FA0C4 #C5C6DB

Accessibility & contrast

On white

4.00
#797BAD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#797BAD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BAD
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BAD#FFFFFF#000000##000000
##797BAD1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D81AF
Deuteranopia (green-blind)
#6A7DAC
Tritanopia (blue-blind)
#6C848D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #797bad;
/* rgb */ color: rgb(121, 123, 173);
/* oklch */ color: oklch(60.1% 0.076 282.1);
Tailwind
colors: {
  custom: {
    50: '#a1a1c5',
    500: '#797bad',
    950: '#000000',
  },
}
SCSS
$custom: #797bad;
$custom-light: #a1a1c5;
$custom-dark: #000000;
JSON
{
  "hex": "#797bad",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 173
  },
  "hsl": {
    "h": 237.692,
    "s": 24.074,
    "l": 57.647
  },
  "oklch": {
    "l": 0.60083,
    "c": 0.07583,
    "h": 282.1
  },
  "luminance": 0.21248
}

Semantic roles & 50–950 ramp

primary
#797BAD
secondary
#CBCBB6
accent
#BD67C1
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0E13
muted
#7F7E82

Preview Lab

Preview with #797BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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