#797DB2#797DB2

#797DB2 is a mid, moderate blue. Relative luminance 0.219; OKLCH L 60.7% C 0.080 H 280.4°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#797DB2
RGBrgb(121, 125, 178)
HSLhsl(236, 27%, 59%)
HSVhsv(236, 32%, 70%)
CMYKcmyk(32%, 29.8%, 0%, 30.2%)
CIE-LABlab(53.97, 11.12, -28.47)
CIE-LCHlch(53.97, 30.57, 291.34°)
OKLaboklab(60.73% 0.0145 -0.0791)
OKLCHoklch(60.73% 0.08 280.4)
XYZxyz(23.2525, 21.9458, 45.1217)
Luminance0.2195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DB2 #B2AE79
analogous
#7999B2 #797DB2 #9179B2
triadic
#797DB2 #B2797D #7DB279
tetradic
#797DB2 #B27999 #B2AE79 #79B291
square
#797DB2 #B27999 #B2AE79 #79B291
split-complementary
#797DB2 #B29179 #99B279
monochromatic
#404470 #575B97 #797DB2 #A0A3C8 #C7C8DF

Accessibility & contrast

On white

3.90
#797DB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#797DB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DB2
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DB2#FFFFFF#000000##000000
##797DB21.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D83B4
Deuteranopia (green-blind)
#6A7FB1
Tritanopia (blue-blind)
#6A8790
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797db2;
/* rgb */ color: rgb(121, 125, 178);
/* oklch */ color: oklch(60.7% 0.080 280.4);
Tailwind
colors: {
  custom: {
    50: '#a1a2c9',
    500: '#797db2',
    950: '#000000',
  },
}
SCSS
$custom: #797db2;
$custom-light: #a1a2c9;
$custom-dark: #000000;
JSON
{
  "hex": "#797db2",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 178
  },
  "hsl": {
    "h": 235.789,
    "s": 27.014,
    "l": 58.627
  },
  "oklch": {
    "l": 0.60733,
    "c": 0.08039,
    "h": 280.4
  },
  "luminance": 0.21947
}

Semantic roles & 50–950 ramp

primary
#797DB2
secondary
#CFCDB8
accent
#BD64C3
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0F13
muted
#7F7E82

Preview Lab

Preview with #797DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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