#797EEC#797EEC

#797EEC is a light, vivid blue. Relative luminance 0.250; OKLCH L 64.1% C 0.162 H 278.8°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#797EEC
RGBrgb(121, 126, 236)
HSLhsl(237, 75%, 70%)
HSVhsv(237, 49%, 93%)
CMYKcmyk(48.7%, 46.6%, 0%, 7.5%)
CIE-LABlab(57.12, 27.09, -56.32)
CIE-LCHlch(57.12, 62.50, 295.69°)
OKLaboklab(64.08% 0.0248 -0.1601)
OKLCHoklch(64.08% 0.162 278.8)
XYZxyz(30.4817, 25.0411, 82.5679)
Luminance0.2504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EEC #ECE779
analogous
#79B8EC #797EEC #AD79EC
triadic
#797EEC #EC797E #7EEC79
tetradic
#797EEC #EC79B8 #ECE779 #79ECAD
square
#797EEC #EC79B8 #ECE779 #79ECAD
split-complementary
#797EEC #ECAD79 #B8EC79
monochromatic
#1D25CD #434AE4 #797EEC #AFB2F4 #E4E5FB

Accessibility & contrast

On white

3.49
#797EEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#797EEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EEC
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EEC#FFFFFF#000000##000000
##797EEC1.003.496.016.01
#FFFFFF3.491.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8EF0
Deuteranopia (green-blind)
#4485EA
Tritanopia (blue-blind)
#4D96AA
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797eec;
/* rgb */ color: rgb(121, 126, 236);
/* oklch */ color: oklch(64.1% 0.162 278.8);
Tailwind
colors: {
  custom: {
    50: '#a6a3f3',
    500: '#797eec',
    950: '#000000',
  },
}
SCSS
$custom: #797eec;
$custom-light: #a6a3f3;
$custom-dark: #000000;
JSON
{
  "hex": "#797eec",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 236
  },
  "hsl": {
    "h": 237.391,
    "s": 75.163,
    "l": 70
  },
  "oklch": {
    "l": 0.64081,
    "c": 0.16201,
    "h": 278.8
  },
  "luminance": 0.25043
}

Semantic roles & 50–950 ramp

primary
#797EEC
secondary
#F0EFD0
accent
#CF0ED7
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797EEC

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

Preview Lab → · Contrast checker → · Palette generator →

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