#797CE2#797CE2

#797CE2 is a light, vivid blue. Relative luminance 0.240; OKLCH L 63.1% C 0.151 H 279.9°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#797CE2
RGBrgb(121, 124, 226)
HSLhsl(238, 64%, 68%)
HSVhsv(238, 46%, 89%)
CMYKcmyk(46.5%, 45.1%, 0%, 11.4%)
CIE-LABlab(56.06, 25.30, -52.43)
CIE-LCHlch(56.06, 58.21, 295.76°)
OKLaboklab(63.1% 0.0259 -0.1487)
OKLCHoklch(63.1% 0.151 279.9)
XYZxyz(28.8161, 23.9698, 75.0450)
Luminance0.2397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CE2 #E2DF79
analogous
#79B0E2 #797CE2 #AA79E2
triadic
#797CE2 #E2797C #7CE279
tetradic
#797CE2 #E279B0 #E2DF79 #79E2AA
square
#797CE2 #E279B0 #E2DF79 #79E2AA
split-complementary
#797CE2 #E2AA79 #B0E279
monochromatic
#282CB9 #474BD7 #797CE2 #ABADED #DEDEF8

Accessibility & contrast

On white

3.62
#797CE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#797CE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CE2
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CE2#FFFFFF#000000##000000
##797CE21.003.625.795.79
#FFFFFF3.621.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#538AE6
Deuteranopia (green-blind)
#4B83E0
Tritanopia (blue-blind)
#5491A4
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #797ce2;
/* rgb */ color: rgb(121, 124, 226);
/* oklch */ color: oklch(63.1% 0.151 279.9);
Tailwind
colors: {
  custom: {
    50: '#a5a1eb',
    500: '#797ce2',
    950: '#000000',
  },
}
SCSS
$custom: #797ce2;
$custom-light: #a5a1eb;
$custom-dark: #000000;
JSON
{
  "hex": "#797ce2",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 226
  },
  "hsl": {
    "h": 238.286,
    "s": 64.417,
    "l": 68.039
  },
  "oklch": {
    "l": 0.63099,
    "c": 0.15092,
    "h": 279.9
  },
  "luminance": 0.23971
}

Semantic roles & 50–950 ramp

primary
#797CE2
secondary
#EBEBCB
accent
#C719CC
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100F16
muted
#7F7E84

Preview Lab

Preview with #797CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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