#797AE3#797AE3

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

Color values

HEX#797AE3
RGBrgb(121, 122, 227)
HSLhsl(239, 65%, 68%)
HSVhsv(239, 47%, 89%)
CMYKcmyk(46.7%, 46.3%, 0%, 11%)
CIE-LABlab(55.61, 26.79, -53.70)
CIE-LCHlch(55.61, 60.01, 296.51°)
OKLaboklab(62.78% 0.0284 -0.1524)
OKLCHoklch(62.78% 0.155 280.5)
XYZxyz(28.7056, 23.5286, 75.6871)
Luminance0.2353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AE3 #E3E279
analogous
#79AFE3 #797AE3 #AD79E3
triadic
#797AE3 #E3797A #7AE379
tetradic
#797AE3 #E379AF #E3E279 #79E3AD
square
#797AE3 #E379AF #E3E279 #79E3AD
split-complementary
#797AE3 #E3AD79 #AFE379
monochromatic
#2728BB #4648D8 #797AE3 #ACACEE #DEDEF8

Accessibility & contrast

On white

3.68
#797AE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#797AE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797AE3
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797AE3#FFFFFF#000000##000000
##797AE31.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E89E7
Deuteranopia (green-blind)
#4781E1
Tritanopia (blue-blind)
#5490A4
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #797ae3;
/* rgb */ color: rgb(121, 122, 227);
/* oklch */ color: oklch(62.8% 0.155 280.5);
Tailwind
colors: {
  custom: {
    50: '#a5a0ec',
    500: '#797ae3',
    950: '#000000',
  },
}
SCSS
$custom: #797ae3;
$custom-light: #a5a0ec;
$custom-dark: #000000;
JSON
{
  "hex": "#797ae3",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 227
  },
  "hsl": {
    "h": 239.434,
    "s": 65.432,
    "l": 68.235
  },
  "oklch": {
    "l": 0.6278,
    "c": 0.15504,
    "h": 280.5
  },
  "luminance": 0.2353
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797AE3

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

Preview Lab → · Contrast checker → · Palette generator →

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