#797BEA#797BEA

#797BEA is a light, vivid blue. Relative luminance 0.242; OKLCH L 63.4% C 0.163 H 279.9°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#797BEA
RGBrgb(121, 123, 234)
HSLhsl(239, 73%, 70%)
HSVhsv(239, 48%, 92%)
CMYKcmyk(48.3%, 47.4%, 0%, 8.2%)
CIE-LABlab(56.26, 28.28, -56.58)
CIE-LCHlch(56.26, 63.25, 296.55°)
OKLaboklab(63.4% 0.028 -0.1609)
OKLCHoklch(63.4% 0.163 279.9)
XYZxyz(29.8149, 24.1698, 80.9202)
Luminance0.2417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BEA #EAE879
analogous
#79B4EA #797BEA #B079EA
triadic
#797BEA #EA797B #7BEA79
tetradic
#797BEA #EA79B4 #EAE879 #79EAB0
square
#797BEA #EA79B4 #EAE879 #79EAB0
split-complementary
#797BEA #EAB079 #B4EA79
monochromatic
#2023C9 #4447E2 #797BEA #AEAFF2 #E3E3FB

Accessibility & contrast

On white

3.60
#797BEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#797BEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BEA
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BEA#FFFFFF#000000##000000
##797BEA1.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A8BEE
Deuteranopia (green-blind)
#4183E8
Tritanopia (blue-blind)
#4F93A7
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #797bea;
/* rgb */ color: rgb(121, 123, 234);
/* oklch */ color: oklch(63.4% 0.163 279.9);
Tailwind
colors: {
  custom: {
    50: '#a6a1f1',
    500: '#797bea',
    950: '#000000',
  },
}
SCSS
$custom: #797bea;
$custom-light: #a6a1f1;
$custom-dark: #000000;
JSON
{
  "hex": "#797bea",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 234
  },
  "hsl": {
    "h": 238.938,
    "s": 72.903,
    "l": 69.608
  },
  "oklch": {
    "l": 0.63396,
    "c": 0.1633,
    "h": 279.9
  },
  "luminance": 0.24171
}

Semantic roles & 50–950 ramp

primary
#797BEA
secondary
#F0EFCF
accent
#D211D5
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #797BEA

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

Preview Lab → · Contrast checker → · Palette generator →

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