#797CEA#797CEA

#797CEA is a light, vivid blue. Relative luminance 0.244; OKLCH L 63.6% C 0.162 H 279.6°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#797CEA
RGBrgb(121, 124, 234)
HSLhsl(238, 73%, 70%)
HSVhsv(238, 48%, 92%)
CMYKcmyk(48.3%, 47%, 0%, 8.2%)
CIE-LABlab(56.51, 27.68, -56.18)
CIE-LCHlch(56.51, 62.63, 296.23°)
OKLaboklab(63.58% 0.0269 -0.1597)
OKLCHoklch(63.58% 0.162 279.6)
XYZxyz(29.9395, 24.4191, 80.9617)
Luminance0.2442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CEA #EAE779
analogous
#79B5EA #797CEA #AF79EA
triadic
#797CEA #EA797C #7CEA79
tetradic
#797CEA #EA79B5 #EAE779 #79EAAF
square
#797CEA #EA79B5 #EAE779 #79EAAF
split-complementary
#797CEA #EAAF79 #B5EA79
monochromatic
#2024C9 #4448E2 #797CEA #AEB0F2 #E3E3FB

Accessibility & contrast

On white

3.57
#797CEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.88
#797CEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CEA
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CEA#FFFFFF#000000##000000
##797CEA1.003.575.885.88
#FFFFFF3.571.0021.0021.00
#0000005.8821.001.001.00
##0000005.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8CEE
Deuteranopia (green-blind)
#4383E8
Tritanopia (blue-blind)
#4F94A8
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #797cea;
/* rgb */ color: rgb(121, 124, 234);
/* oklch */ color: oklch(63.6% 0.162 279.6);
Tailwind
colors: {
  custom: {
    50: '#a6a1f1',
    500: '#797cea',
    950: '#000000',
  },
}
SCSS
$custom: #797cea;
$custom-light: #a6a1f1;
$custom-dark: #000000;
JSON
{
  "hex": "#797cea",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 234
  },
  "hsl": {
    "h": 238.407,
    "s": 72.903,
    "l": 69.608
  },
  "oklch": {
    "l": 0.63583,
    "c": 0.16195,
    "h": 279.6
  },
  "luminance": 0.24421
}

Semantic roles & 50–950 ramp

primary
#797CEA
secondary
#F0EFCF
accent
#D011D5
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #797CEA

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

Preview Lab → · Contrast checker → · Palette generator →

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