#797ABE#797ABE

#797ABE is a mid, moderate blue. Relative luminance 0.217; OKLCH L 60.7% C 0.102 H 282.3°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#797ABE
RGBrgb(121, 122, 190)
HSLhsl(239, 35%, 61%)
HSVhsv(239, 36%, 75%)
CMYKcmyk(36.3%, 35.8%, 0%, 25.5%)
CIE-LABlab(53.71, 16.16, -35.76)
CIE-LCHlch(53.71, 39.25, 294.32°)
OKLaboklab(60.71% 0.0217 -0.1001)
OKLCHoklch(60.71% 0.102 282.3)
XYZxyz(24.1363, 21.7009, 51.6222)
Luminance0.2170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797ABE #BEBD79
analogous
#799CBE #797ABE #9A79BE
triadic
#797ABE #BE797A #7ABE79
tetradic
#797ABE #BE799C #BEBD79 #79BE9A
square
#797ABE #BE799C #BEBD79 #79BE9A
split-complementary
#797ABE #BE9A79 #9CBE79
monochromatic
#3E3F7F #5253A8 #797ABE #A2A3D2 #CBCCE6

Accessibility & contrast

On white

3.93
#797ABE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#797ABE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797ABE
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797ABE#FFFFFF#000000##000000
##797ABE1.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6483C1
Deuteranopia (green-blind)
#617EBC
Tritanopia (blue-blind)
#668793
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797abe;
/* rgb */ color: rgb(121, 122, 190);
/* oklch */ color: oklch(60.7% 0.102 282.3);
Tailwind
colors: {
  custom: {
    50: '#a2a0d2',
    500: '#797abe',
    950: '#000000',
  },
}
SCSS
$custom: #797abe;
$custom-light: #a2a0d2;
$custom-dark: #000000;
JSON
{
  "hex": "#797abe",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 190
  },
  "hsl": {
    "h": 239.13,
    "s": 34.673,
    "l": 60.98
  },
  "oklch": {
    "l": 0.60708,
    "c": 0.10244,
    "h": 282.3
  },
  "luminance": 0.21702
}

Semantic roles & 50–950 ramp

primary
#797ABE
secondary
#D6D6BC
accent
#AC38AE
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#0F0E14
muted
#7F7E82

Preview Lab

Preview with #797ABE

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

Preview Lab → · Contrast checker → · Palette generator →

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