#797EE3#797EE3

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

Color values

HEX#797EE3
RGBrgb(121, 126, 227)
HSLhsl(237, 65%, 68%)
HSVhsv(237, 47%, 89%)
CMYKcmyk(46.7%, 44.5%, 0%, 11%)
CIE-LABlab(56.62, 24.41, -52.10)
CIE-LCHlch(56.62, 57.53, 295.10°)
OKLaboklab(63.54% 0.0236 -0.1477)
OKLCHoklch(63.54% 0.15 279.1)
XYZxyz(29.2069, 24.5312, 75.8542)
Luminance0.2453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EE3 #E3DE79
analogous
#79B3E3 #797EE3 #A979E3
triadic
#797EE3 #E3797E #7EE379
tetradic
#797EE3 #E379B3 #E3DE79 #79E3A9
square
#797EE3 #E379B3 #E3DE79 #79E3A9
split-complementary
#797EE3 #E3A979 #B3E379
monochromatic
#272EBB #464DD8 #797EE3 #ACAFEE #DEDFF8

Accessibility & contrast

On white

3.56
#797EE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##797EE3#FFFFFF#000000##000000
##797EE31.003.565.915.91
#FFFFFF3.561.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#558CE7
Deuteranopia (green-blind)
#4D84E1
Tritanopia (blue-blind)
#5393A5
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797ee3;
/* rgb */ color: rgb(121, 126, 227);
/* oklch */ color: oklch(63.5% 0.150 279.1);
Tailwind
colors: {
  custom: {
    50: '#a5a3ec',
    500: '#797ee3',
    950: '#000000',
  },
}
SCSS
$custom: #797ee3;
$custom-light: #a5a3ec;
$custom-dark: #000000;
JSON
{
  "hex": "#797ee3",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 227
  },
  "hsl": {
    "h": 237.17,
    "s": 65.432,
    "l": 68.235
  },
  "oklch": {
    "l": 0.63541,
    "c": 0.14959,
    "h": 279.1
  },
  "luminance": 0.24533
}

Semantic roles & 50–950 ramp

primary
#797EE3
secondary
#ECEACC
accent
#C518CD
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #797EE3

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

Preview Lab → · Contrast checker → · Palette generator →

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