#797DEC#797DEC

#797DEC is a light, vivid blue. Relative luminance 0.248; OKLCH L 63.9% C 0.163 H 279.2°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#797DEC
RGBrgb(121, 125, 236)
HSLhsl(238, 75%, 70%)
HSVhsv(238, 49%, 93%)
CMYKcmyk(48.7%, 47%, 0%, 7.5%)
CIE-LABlab(56.87, 27.69, -56.72)
CIE-LCHlch(56.87, 63.11, 296.02°)
OKLaboklab(63.89% 0.026 -0.1613)
OKLCHoklch(63.89% 0.163 279.2)
XYZxyz(30.3544, 24.7866, 82.5255)
Luminance0.2479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DEC #ECE879
analogous
#79B7EC #797DEC #AE79EC
triadic
#797DEC #EC797D #7DEC79
tetradic
#797DEC #EC79B7 #ECE879 #79ECAE
square
#797DEC #EC79B7 #ECE879 #79ECAE
split-complementary
#797DEC #ECAE79 #B7EC79
monochromatic
#1D23CD #4349E4 #797DEC #AFB1F4 #E4E5FB

Accessibility & contrast

On white

3.52
#797DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#797DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DEC
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DEC#FFFFFF#000000##000000
##797DEC1.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8DF0
Deuteranopia (green-blind)
#4384EA
Tritanopia (blue-blind)
#4D95A9
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797dec;
/* rgb */ color: rgb(121, 125, 236);
/* oklch */ color: oklch(63.9% 0.163 279.2);
Tailwind
colors: {
  custom: {
    50: '#a6a2f3',
    500: '#797dec',
    950: '#000000',
  },
}
SCSS
$custom: #797dec;
$custom-light: #a6a2f3;
$custom-dark: #000000;
JSON
{
  "hex": "#797dec",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 236
  },
  "hsl": {
    "h": 237.913,
    "s": 75.163,
    "l": 70
  },
  "oklch": {
    "l": 0.63893,
    "c": 0.16334,
    "h": 279.2
  },
  "luminance": 0.24788
}

Semantic roles & 50–950 ramp

primary
#797DEC
secondary
#F0EFD0
accent
#D00ED7
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #797DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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