#797CD4#797CD4

#797CD4 is a light, vivid blue. Relative luminance 0.232; OKLCH L 62.3% C 0.131 H 280.4°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#797CD4
RGBrgb(121, 124, 212)
HSLhsl(238, 51%, 65%)
HSVhsv(238, 43%, 83%)
CMYKcmyk(42.9%, 41.5%, 0%, 16.9%)
CIE-LABlab(55.31, 21.20, -45.74)
CIE-LCHlch(55.31, 50.42, 294.86°)
OKLaboklab(62.29% 0.0237 -0.1291)
OKLCHoklch(62.29% 0.131 280.4)
XYZxyz(26.9730, 23.2325, 65.3377)
Luminance0.2323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CD4 #D4D179
analogous
#79A9D4 #797CD4 #A379D4
triadic
#797CD4 #D4797C #7CD479
tetradic
#797CD4 #D479A9 #D4D179 #79D4A3
square
#797CD4 #D479A9 #D4D179 #79D4A3
split-complementary
#797CD4 #D4A379 #A9D479
monochromatic
#33379F #4B4FC5 #797CD4 #A7A9E3 #D6D7F2

Accessibility & contrast

On white

3.72
#797CD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#797CD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CD4
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CD4#FFFFFF#000000##000000
##797CD41.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C88D7
Deuteranopia (green-blind)
#5681D2
Tritanopia (blue-blind)
#5C8E9E
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797cd4;
/* rgb */ color: rgb(121, 124, 212);
/* oklch */ color: oklch(62.3% 0.131 280.4);
Tailwind
colors: {
  custom: {
    50: '#a4a1e1',
    500: '#797cd4',
    950: '#000000',
  },
}
SCSS
$custom: #797cd4;
$custom-light: #a4a1e1;
$custom-dark: #000000;
JSON
{
  "hex": "#797cd4",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 212
  },
  "hsl": {
    "h": 238.022,
    "s": 51.412,
    "l": 65.294
  },
  "oklch": {
    "l": 0.62289,
    "c": 0.13127,
    "h": 280.4
  },
  "luminance": 0.23234
}

Semantic roles & 50–950 ramp

primary
#797CD4
secondary
#E4E3C5
accent
#BA27BF
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #797CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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