#797CEC#797CEC

#797CEC is a light, vivid blue. Relative luminance 0.245; OKLCH L 63.7% C 0.165 H 279.5°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#797CEC
RGBrgb(121, 124, 236)
HSLhsl(238, 75%, 70%)
HSVhsv(238, 49%, 93%)
CMYKcmyk(48.7%, 47.5%, 0%, 7.5%)
CIE-LABlab(56.62, 28.28, -57.11)
CIE-LCHlch(56.62, 63.73, 296.34°)
OKLaboklab(63.71% 0.0271 -0.1624)
OKLCHoklch(63.71% 0.165 279.5)
XYZxyz(30.2285, 24.5347, 82.4835)
Luminance0.2454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CEC #ECE979
analogous
#79B5EC #797CEC #B079EC
triadic
#797CEC #EC797C #7CEC79
tetradic
#797CEC #EC79B5 #ECE979 #79ECB0
square
#797CEC #EC79B5 #ECE979 #79ECB0
split-complementary
#797CEC #ECB079 #B5EC79
monochromatic
#1D22CD #4348E4 #797CEC #AFB0F4 #E4E5FB

Accessibility & contrast

On white

3.55
#797CEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#797CEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CEC
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CEC#FFFFFF#000000##000000
##797CEC1.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8CF0
Deuteranopia (green-blind)
#4184EA
Tritanopia (blue-blind)
#4D94A9
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797cec;
/* rgb */ color: rgb(121, 124, 236);
/* oklch */ color: oklch(63.7% 0.165 279.5);
Tailwind
colors: {
  custom: {
    50: '#a6a1f3',
    500: '#797cec',
    950: '#000000',
  },
}
SCSS
$custom: #797cec;
$custom-light: #a6a1f3;
$custom-dark: #000000;
JSON
{
  "hex": "#797cec",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 236
  },
  "hsl": {
    "h": 238.435,
    "s": 75.163,
    "l": 70
  },
  "oklch": {
    "l": 0.63706,
    "c": 0.16468,
    "h": 279.5
  },
  "luminance": 0.24536
}

Semantic roles & 50–950 ramp

primary
#797CEC
secondary
#F0F0D0
accent
#D20ED7
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #797CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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