#797EC2#797EC2

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

Color values

HEX#797EC2
RGBrgb(121, 126, 194)
HSLhsl(236, 37%, 62%)
HSVhsv(236, 38%, 76%)
CMYKcmyk(37.6%, 35.1%, 0%, 23.9%)
CIE-LABlab(54.95, 14.89, -36.10)
CIE-LCHlch(54.95, 39.05, 292.41°)
OKLaboklab(61.72% 0.0173 -0.1011)
OKLCHoklch(61.72% 0.103 279.7)
XYZxyz(25.0808, 22.8807, 54.1234)
Luminance0.2288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EC2 #C2BD79
analogous
#79A3C2 #797EC2 #9979C2
triadic
#797EC2 #C2797E #7EC279
tetradic
#797EC2 #C279A3 #C2BD79 #79C299
square
#797EC2 #C279A3 #C2BD79 #79C299
split-complementary
#797EC2 #C29979 #A3C279
monochromatic
#3C4184 #4F56AE #797EC2 #A3A6D5 #CDCFE8

Accessibility & contrast

On white

3.77
#797EC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#797EC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EC2
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EC2#FFFFFF#000000##000000
##797EC21.003.775.585.58
#FFFFFF3.771.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6886C5
Deuteranopia (green-blind)
#6481C0
Tritanopia (blue-blind)
#648B97
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797ec2;
/* rgb */ color: rgb(121, 126, 194);
/* oklch */ color: oklch(61.7% 0.103 279.7);
Tailwind
colors: {
  custom: {
    50: '#a2a3d4',
    500: '#797ec2',
    950: '#000000',
  },
}
SCSS
$custom: #797ec2;
$custom-light: #a2a3d4;
$custom-dark: #000000;
JSON
{
  "hex": "#797ec2",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 194
  },
  "hsl": {
    "h": 235.89,
    "s": 37.436,
    "l": 61.765
  },
  "oklch": {
    "l": 0.61723,
    "c": 0.10254,
    "h": 279.7
  },
  "luminance": 0.22882
}

Semantic roles & 50–950 ramp

primary
#797EC2
secondary
#D9D7BE
accent
#A835B0
background
#FAFAFD
surface
#F4F3FA
border
#CECDD3
text
#0F0F14
muted
#7F7F83

Preview Lab

Preview with #797EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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