#797AE4#797AE4

#797AE4 is a light, vivid blue. Relative luminance 0.236; OKLCH L 62.8% C 0.156 H 280.5°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#797AE4
RGBrgb(121, 122, 228)
HSLhsl(239, 66%, 68%)
HSVhsv(239, 47%, 89%)
CMYKcmyk(46.9%, 46.5%, 0%, 10.6%)
CIE-LABlab(55.67, 27.08, -54.17)
CIE-LCHlch(55.67, 60.56, 296.57°)
OKLaboklab(62.84% 0.0285 -0.1538)
OKLCHoklch(62.84% 0.156 280.5)
XYZxyz(28.8440, 23.5840, 76.4161)
Luminance0.2359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AE4 #E4E379
analogous
#79AFE4 #797AE4 #AD79E4
triadic
#797AE4 #E4797A #7AE479
tetradic
#797AE4 #E479AF #E4E379 #79E4AD
square
#797AE4 #E479AF #E4E379 #79E4AD
split-complementary
#797AE4 #E4AD79 #AFE479
monochromatic
#2627BD #4647DA #797AE4 #ACADEE #DFDFF9

Accessibility & contrast

On white

3.67
#797AE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#797AE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797AE4
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797AE4#FFFFFF#000000##000000
##797AE41.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D89E8
Deuteranopia (green-blind)
#4681E2
Tritanopia (blue-blind)
#5390A4
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #797ae4;
/* rgb */ color: rgb(121, 122, 228);
/* oklch */ color: oklch(62.8% 0.156 280.5);
Tailwind
colors: {
  custom: {
    50: '#a5a0ed',
    500: '#797ae4',
    950: '#000000',
  },
}
SCSS
$custom: #797ae4;
$custom-light: #a5a0ed;
$custom-dark: #000000;
JSON
{
  "hex": "#797ae4",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 228
  },
  "hsl": {
    "h": 239.439,
    "s": 66.46,
    "l": 68.431
  },
  "oklch": {
    "l": 0.62841,
    "c": 0.15642,
    "h": 280.5
  },
  "luminance": 0.23585
}

Semantic roles & 50–950 ramp

primary
#797AE4
secondary
#ECECCC
accent
#CD17CE
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #797AE4

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

Preview Lab → · Contrast checker → · Palette generator →

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