#797DC1#797DC1

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

Color values

HEX#797DC1
RGBrgb(121, 125, 193)
HSLhsl(237, 37%, 62%)
HSVhsv(237, 37%, 76%)
CMYKcmyk(37.3%, 35.2%, 0%, 24.3%)
CIE-LABlab(54.64, 15.20, -36.02)
CIE-LCHlch(54.64, 39.10, 292.89°)
OKLaboklab(61.47% 0.0184 -0.1008)
OKLCHoklch(61.47% 0.103 280.3)
XYZxyz(24.8417, 22.5815, 53.4915)
Luminance0.2258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DC1 #C1BD79
analogous
#79A1C1 #797DC1 #9979C1
triadic
#797DC1 #C1797D #7DC179
tetradic
#797DC1 #C179A1 #C1BD79 #79C199
square
#797DC1 #C179A1 #C1BD79 #79C199
split-complementary
#797DC1 #C19979 #A1C179
monochromatic
#3D4183 #5055AD #797DC1 #A3A6D4 #CDCEE8

Accessibility & contrast

On white

3.81
#797DC1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#797DC1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DC1
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DC1#FFFFFF#000000##000000
##797DC11.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6785C4
Deuteranopia (green-blind)
#6380BF
Tritanopia (blue-blind)
#658A96
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797dc1;
/* rgb */ color: rgb(121, 125, 193);
/* oklch */ color: oklch(61.5% 0.102 280.3);
Tailwind
colors: {
  custom: {
    50: '#a2a2d4',
    500: '#797dc1',
    950: '#000000',
  },
}
SCSS
$custom: #797dc1;
$custom-light: #a2a2d4;
$custom-dark: #000000;
JSON
{
  "hex": "#797dc1",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 193
  },
  "hsl": {
    "h": 236.667,
    "s": 36.735,
    "l": 61.569
  },
  "oklch": {
    "l": 0.61469,
    "c": 0.1025,
    "h": 280.3
  },
  "luminance": 0.22582
}

Semantic roles & 50–950 ramp

primary
#797DC1
secondary
#D8D7BE
accent
#A936B0
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0F14
muted
#7F7E83

Preview Lab

Preview with #797DC1

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

Preview Lab → · Contrast checker → · Palette generator →

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