#797BE2#797BE2

#797BE2 is a light, vivid blue. Relative luminance 0.237; OKLCH L 62.9% C 0.152 H 280.2°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#797BE2
RGBrgb(121, 123, 226)
HSLhsl(239, 64%, 68%)
HSVhsv(239, 46%, 89%)
CMYKcmyk(46.5%, 45.6%, 0%, 11.4%)
CIE-LABlab(55.81, 25.90, -52.83)
CIE-LCHlch(55.81, 58.83, 296.11°)
OKLaboklab(62.91% 0.0271 -0.1499)
OKLCHoklch(62.91% 0.152 280.2)
XYZxyz(28.6914, 23.7204, 75.0035)
Luminance0.2372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BE2 #E2E079
analogous
#79AFE2 #797BE2 #AB79E2
triadic
#797BE2 #E2797B #7BE279
tetradic
#797BE2 #E279AF #E2E079 #79E2AB
square
#797BE2 #E279AF #E2E079 #79E2AB
split-complementary
#797BE2 #E2AB79 #AFE279
monochromatic
#282BB9 #4749D7 #797BE2 #ABADED #DEDEF8

Accessibility & contrast

On white

3.66
#797BE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#797BE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BE2
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BE2#FFFFFF#000000##000000
##797BE21.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#518AE6
Deuteranopia (green-blind)
#4982E0
Tritanopia (blue-blind)
#5491A4
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #797be2;
/* rgb */ color: rgb(121, 123, 226);
/* oklch */ color: oklch(62.9% 0.152 280.2);
Tailwind
colors: {
  custom: {
    50: '#a5a1ec',
    500: '#797be2',
    950: '#000000',
  },
}
SCSS
$custom: #797be2;
$custom-light: #a5a1ec;
$custom-dark: #000000;
JSON
{
  "hex": "#797be2",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 226
  },
  "hsl": {
    "h": 238.857,
    "s": 64.417,
    "l": 68.039
  },
  "oklch": {
    "l": 0.62909,
    "c": 0.15228,
    "h": 280.2
  },
  "luminance": 0.23722
}

Semantic roles & 50–950 ramp

primary
#797BE2
secondary
#EBEBCB
accent
#C919CC
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #797BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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