#797DCA#797DCA

#797DCA is a mid, moderate blue. Relative luminance 0.230; OKLCH L 61.9% C 0.116 H 280.2°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#797DCA
RGBrgb(121, 125, 202)
HSLhsl(237, 43%, 63%)
HSVhsv(237, 40%, 79%)
CMYKcmyk(40.1%, 38.1%, 0%, 20.8%)
CIE-LABlab(55.07, 17.73, -40.47)
CIE-LCHlch(55.07, 44.18, 293.66°)
OKLaboklab(61.94% 0.0204 -0.1137)
OKLCHoklch(61.94% 0.116 280.2)
XYZxyz(25.8763, 22.9954, 58.9408)
Luminance0.2300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DCA #CAC679
analogous
#79A5CA #797DCA #9D79CA
triadic
#797DCA #CA797D #7DCA79
tetradic
#797DCA #CA79A5 #CAC679 #79CA9D
square
#797DCA #CA79A5 #CAC679 #79CA9D
split-complementary
#797DCA #CA9D79 #A5CA79
monochromatic
#393D90 #4D52B9 #797DCA #A5A8DB #D1D2ED

Accessibility & contrast

On white

3.75
#797DCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#797DCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DCA
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DCA#FFFFFF#000000##000000
##797DCA1.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6387CD
Deuteranopia (green-blind)
#5E81C8
Tritanopia (blue-blind)
#618C9A
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797dca;
/* rgb */ color: rgb(121, 125, 202);
/* oklch */ color: oklch(61.9% 0.116 280.2);
Tailwind
colors: {
  custom: {
    50: '#a3a2da',
    500: '#797dca',
    950: '#000000',
  },
}
SCSS
$custom: #797dca;
$custom-light: #a3a2da;
$custom-dark: #000000;
JSON
{
  "hex": "#797dca",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 202
  },
  "hsl": {
    "h": 237.037,
    "s": 43.316,
    "l": 63.333
  },
  "oklch": {
    "l": 0.61939,
    "c": 0.11556,
    "h": 280.2
  },
  "luminance": 0.22996
}

Semantic roles & 50–950 ramp

primary
#797DCA
secondary
#DEDCC1
accent
#B02FB6
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #797DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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