#797DC2#797DC2

#797DC2 is a mid, moderate blue. Relative luminance 0.226; OKLCH L 61.5% C 0.104 H 280.3°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#797DC2
RGBrgb(121, 125, 194)
HSLhsl(237, 37%, 62%)
HSVhsv(237, 38%, 76%)
CMYKcmyk(37.6%, 35.6%, 0%, 23.9%)
CIE-LABlab(54.69, 15.48, -36.52)
CIE-LCHlch(54.69, 39.66, 292.98°)
OKLaboklab(61.52% 0.0187 -0.1023)
OKLCHoklch(61.52% 0.104 280.3)
XYZxyz(24.9536, 22.6263, 54.0810)
Luminance0.2263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DC2 #C2BE79
analogous
#79A2C2 #797DC2 #9A79C2
triadic
#797DC2 #C2797D #7DC279
tetradic
#797DC2 #C279A2 #C2BE79 #79C29A
square
#797DC2 #C279A2 #C2BE79 #79C29A
split-complementary
#797DC2 #C29A79 #A2C279
monochromatic
#3C4084 #4F55AE #797DC2 #A3A6D5 #CDCFE8

Accessibility & contrast

On white

3.80
#797DC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#797DC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DC2
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DC2#FFFFFF#000000##000000
##797DC21.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6786C5
Deuteranopia (green-blind)
#6380C0
Tritanopia (blue-blind)
#648A96
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797dc2;
/* rgb */ color: rgb(121, 125, 194);
/* oklch */ color: oklch(61.5% 0.104 280.3);
Tailwind
colors: {
  custom: {
    50: '#a2a2d4',
    500: '#797dc2',
    950: '#000000',
  },
}
SCSS
$custom: #797dc2;
$custom-light: #a2a2d4;
$custom-dark: #000000;
JSON
{
  "hex": "#797dc2",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 194
  },
  "hsl": {
    "h": 236.712,
    "s": 37.436,
    "l": 61.765
  },
  "oklch": {
    "l": 0.6152,
    "c": 0.10396,
    "h": 280.3
  },
  "luminance": 0.22627
}

Semantic roles & 50–950 ramp

primary
#797DC2
secondary
#D9D7BE
accent
#AA35B0
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0F14
muted
#7F7E83

Preview Lab

Preview with #797DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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