#797AE1#797AE1

#797AE1 is a light, vivid blue. Relative luminance 0.234; OKLCH L 62.7% C 0.152 H 280.6°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#797AE1
RGBrgb(121, 122, 225)
HSLhsl(239, 63%, 68%)
HSVhsv(239, 46%, 88%)
CMYKcmyk(46.2%, 45.8%, 0%, 11.8%)
CIE-LABlab(55.50, 26.20, -52.75)
CIE-LCHlch(55.50, 58.90, 296.41°)
OKLaboklab(62.66% 0.0281 -0.1496)
OKLCHoklch(62.66% 0.152 280.6)
XYZxyz(28.4312, 23.4188, 74.2418)
Luminance0.2342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AE1 #E1E079
analogous
#79AEE1 #797AE1 #AC79E1
triadic
#797AE1 #E1797A #7AE179
tetradic
#797AE1 #E179AE #E1E079 #79E1AC
square
#797AE1 #E179AE #E1E079 #79E1AC
split-complementary
#797AE1 #E1AC79 #AEE179
monochromatic
#292AB7 #4748D6 #797AE1 #ABACEC #DDDDF7

Accessibility & contrast

On white

3.69
#797AE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#797AE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797AE1
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797AE1#FFFFFF#000000##000000
##797AE11.003.695.685.68
#FFFFFF3.691.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5089E5
Deuteranopia (green-blind)
#4981DF
Tritanopia (blue-blind)
#5590A3
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #797ae1;
/* rgb */ color: rgb(121, 122, 225);
/* oklch */ color: oklch(62.7% 0.152 280.6);
Tailwind
colors: {
  custom: {
    50: '#a5a0eb',
    500: '#797ae1',
    950: '#000000',
  },
}
SCSS
$custom: #797ae1;
$custom-light: #a5a0eb;
$custom-dark: #000000;
JSON
{
  "hex": "#797ae1",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 225
  },
  "hsl": {
    "h": 239.423,
    "s": 63.415,
    "l": 67.843
  },
  "oklch": {
    "l": 0.6266,
    "c": 0.15227,
    "h": 280.6
  },
  "luminance": 0.2342
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797AE1

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

Preview Lab → · Contrast checker → · Palette generator →

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