#797AEB#797AEB

#797AEB is a light, vivid blue. Relative luminance 0.240; OKLCH L 63.3% C 0.166 H 280.2°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#797AEB
RGBrgb(121, 122, 235)
HSLhsl(239, 74%, 70%)
HSVhsv(239, 49%, 92%)
CMYKcmyk(48.5%, 48.1%, 0%, 7.8%)
CIE-LABlab(56.07, 29.17, -57.44)
CIE-LCHlch(56.07, 64.42, 296.92°)
OKLaboklab(63.27% 0.0293 -0.1634)
OKLCHoklch(63.27% 0.166 280.2)
XYZxyz(29.8355, 23.9806, 81.6378)
Luminance0.2398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AEB #EBEA79
analogous
#79B3EB #797AEB #B179EB
triadic
#797AEB #EB797A #7AEB79
tetradic
#797AEB #EB79B3 #EBEA79 #79EBB1
square
#797AEB #EB79B3 #EBEA79 #79EBB1
split-complementary
#797AEB #EBB179 #B3EB79
monochromatic
#1E20CB #4445E3 #797AEB #AEAFF3 #E4E4FB

Accessibility & contrast

On white

3.62
#797AEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#797AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797AEB
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797AEB#FFFFFF#000000##000000
##797AEB1.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#478BEF
Deuteranopia (green-blind)
#3E82E9
Tritanopia (blue-blind)
#4E92A7
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #797aeb;
/* rgb */ color: rgb(121, 122, 235);
/* oklch */ color: oklch(63.3% 0.166 280.2);
Tailwind
colors: {
  custom: {
    50: '#a6a0f2',
    500: '#797aeb',
    950: '#000000',
  },
}
SCSS
$custom: #797aeb;
$custom-light: #a6a0f2;
$custom-dark: #000000;
JSON
{
  "hex": "#797aeb",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 235
  },
  "hsl": {
    "h": 239.474,
    "s": 74.026,
    "l": 69.804
  },
  "oklch": {
    "l": 0.63272,
    "c": 0.166,
    "h": 280.2
  },
  "luminance": 0.23982
}

Semantic roles & 50–950 ramp

primary
#797AEB
secondary
#F0F0D0
accent
#D40FD6
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #797AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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