#797EC3#797EC3

#797EC3 is a mid, moderate blue. Relative luminance 0.229; OKLCH L 61.8% C 0.104 H 279.7°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#797EC3
RGBrgb(121, 126, 195)
HSLhsl(236, 38%, 62%)
HSVhsv(236, 38%, 76%)
CMYKcmyk(37.9%, 35.4%, 0%, 23.5%)
CIE-LABlab(55.00, 15.17, -36.60)
CIE-LCHlch(55.00, 39.62, 292.51°)
OKLaboklab(61.77% 0.0176 -0.1025)
OKLCHoklch(61.77% 0.104 279.7)
XYZxyz(25.1935, 22.9258, 54.7169)
Luminance0.2293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EC3 #C3BE79
analogous
#79A3C3 #797EC3 #9979C3
triadic
#797EC3 #C3797E #7EC379
tetradic
#797EC3 #C379A3 #C3BE79 #79C399
square
#797EC3 #C379A3 #C3BE79 #79C399
split-complementary
#797EC3 #C39979 #A3C379
monochromatic
#3C4186 #4F55B0 #797EC3 #A3A7D6 #CECFE9

Accessibility & contrast

On white

3.76
#797EC3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#797EC3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EC3
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EC3#FFFFFF#000000##000000
##797EC31.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6786C6
Deuteranopia (green-blind)
#6381C1
Tritanopia (blue-blind)
#648B97
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797ec3;
/* rgb */ color: rgb(121, 126, 195);
/* oklch */ color: oklch(61.8% 0.104 279.7);
Tailwind
colors: {
  custom: {
    50: '#a2a3d5',
    500: '#797ec3',
    950: '#000000',
  },
}
SCSS
$custom: #797ec3;
$custom-light: #a2a3d5;
$custom-dark: #000000;
JSON
{
  "hex": "#797ec3",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 195
  },
  "hsl": {
    "h": 235.946,
    "s": 38.144,
    "l": 61.961
  },
  "oklch": {
    "l": 0.61774,
    "c": 0.104,
    "h": 279.7
  },
  "luminance": 0.22927
}

Semantic roles & 50–950 ramp

primary
#797EC3
secondary
#DAD8BE
accent
#A934B1
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#0F0F14
muted
#7F7F83

Preview Lab

Preview with #797EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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