#797DC3#797DC3

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

Color values

HEX#797DC3
RGBrgb(121, 125, 195)
HSLhsl(237, 38%, 62%)
HSVhsv(237, 38%, 76%)
CMYKcmyk(37.9%, 35.9%, 0%, 23.5%)
CIE-LABlab(54.73, 15.76, -37.01)
CIE-LCHlch(54.73, 40.23, 293.07°)
OKLaboklab(61.57% 0.0189 -0.1037)
OKLCHoklch(61.57% 0.105 280.3)
XYZxyz(25.0663, 22.6714, 54.6745)
Luminance0.2267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DC3 #C3BF79
analogous
#79A2C3 #797DC3 #9A79C3
triadic
#797DC3 #C3797D #7DC379
tetradic
#797DC3 #C379A2 #C3BF79 #79C39A
square
#797DC3 #C379A2 #C3BF79 #79C39A
split-complementary
#797DC3 #C39A79 #A2C379
monochromatic
#3C4086 #4F54B0 #797DC3 #A3A6D6 #CECFE9

Accessibility & contrast

On white

3.79
#797DC3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##797DC3#FFFFFF#000000##000000
##797DC31.003.795.535.53
#FFFFFF3.791.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6686C6
Deuteranopia (green-blind)
#6280C1
Tritanopia (blue-blind)
#648B97
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797dc3;
/* rgb */ color: rgb(121, 125, 195);
/* oklch */ color: oklch(61.6% 0.105 280.3);
Tailwind
colors: {
  custom: {
    50: '#a2a2d5',
    500: '#797dc3',
    950: '#000000',
  },
}
SCSS
$custom: #797dc3;
$custom-light: #a2a2d5;
$custom-dark: #000000;
JSON
{
  "hex": "#797dc3",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 195
  },
  "hsl": {
    "h": 236.757,
    "s": 38.144,
    "l": 61.961
  },
  "oklch": {
    "l": 0.61571,
    "c": 0.10542,
    "h": 280.3
  },
  "luminance": 0.22672
}

Semantic roles & 50–950 ramp

primary
#797DC3
secondary
#DAD8BE
accent
#AA34B1
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#0F0F14
muted
#7F7E83

Preview Lab

Preview with #797DC3

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

Preview Lab → · Contrast checker → · Palette generator →

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