#797CC0#797CC0

#797CC0 is a mid, moderate blue. Relative luminance 0.223; OKLCH L 61.2% C 0.102 H 281.0°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#797CC0
RGBrgb(121, 124, 192)
HSLhsl(237, 36%, 61%)
HSVhsv(237, 37%, 75%)
CMYKcmyk(37%, 35.4%, 0%, 24.7%)
CIE-LABlab(54.33, 15.52, -35.94)
CIE-LCHlch(54.33, 39.15, 293.36°)
OKLaboklab(61.22% 0.0195 -0.1006)
OKLCHoklch(61.22% 0.102 281)
XYZxyz(24.6045, 22.2851, 52.8640)
Luminance0.2229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CC0 #C0BD79
analogous
#79A0C0 #797CC0 #9A79C0
triadic
#797CC0 #C0797C #7CC079
tetradic
#797CC0 #C079A0 #C0BD79 #79C09A
square
#797CC0 #C079A0 #C0BD79 #79C09A
split-complementary
#797CC0 #C09A79 #A0C079
monochromatic
#3D4082 #5154AB #797CC0 #A3A5D4 #CCCDE7

Accessibility & contrast

On white

3.85
#797CC0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#797CC0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CC0
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CC0#FFFFFF#000000##000000
##797CC01.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6685C3
Deuteranopia (green-blind)
#6380BE
Tritanopia (blue-blind)
#658995
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #797cc0;
/* rgb */ color: rgb(121, 124, 192);
/* oklch */ color: oklch(61.2% 0.102 281.0);
Tailwind
colors: {
  custom: {
    50: '#a2a1d3',
    500: '#797cc0',
    950: '#000000',
  },
}
SCSS
$custom: #797cc0;
$custom-light: #a2a1d3;
$custom-dark: #000000;
JSON
{
  "hex": "#797cc0",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 192
  },
  "hsl": {
    "h": 237.465,
    "s": 36.041,
    "l": 61.373
  },
  "oklch": {
    "l": 0.61215,
    "c": 0.10247,
    "h": 281
  },
  "luminance": 0.22286
}

Semantic roles & 50–950 ramp

primary
#797CC0
secondary
#D8D7BD
accent
#AA37AF
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0F14
muted
#7F7E83

Preview Lab

Preview with #797CC0

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

Preview Lab → · Contrast checker → · Palette generator →

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