#797CD6#797CD6

#797CD6 is a light, vivid blue. Relative luminance 0.233; OKLCH L 62.4% C 0.134 H 280.3°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#797CD6
RGBrgb(121, 124, 214)
HSLhsl(238, 53%, 66%)
HSVhsv(238, 43%, 84%)
CMYKcmyk(43.5%, 42.1%, 0%, 16.1%)
CIE-LABlab(55.41, 21.78, -46.71)
CIE-LCHlch(55.41, 51.54, 295.00°)
OKLaboklab(62.4% 0.024 -0.1319)
OKLCHoklch(62.4% 0.134 280.3)
XYZxyz(27.2268, 23.3340, 66.6746)
Luminance0.2334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CD6 #D6D379
analogous
#79AAD6 #797CD6 #A579D6
triadic
#797CD6 #D6797C #7CD679
tetradic
#797CD6 #D679AA #D6D379 #79D6A5
square
#797CD6 #D679AA #D6D379 #79D6A5
split-complementary
#797CD6 #D6A579 #AAD679
monochromatic
#3235A3 #4A4EC8 #797CD6 #A8AAE4 #D7D8F3

Accessibility & contrast

On white

3.71
#797CD6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#797CD6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CD6
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CD6#FFFFFF#000000##000000
##797CD61.003.715.675.67
#FFFFFF3.711.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B88D9
Deuteranopia (green-blind)
#5581D4
Tritanopia (blue-blind)
#5B8E9F
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #797cd6;
/* rgb */ color: rgb(121, 124, 214);
/* oklch */ color: oklch(62.4% 0.134 280.3);
Tailwind
colors: {
  custom: {
    50: '#a4a1e3',
    500: '#797cd6',
    950: '#000000',
  },
}
SCSS
$custom: #797cd6;
$custom-light: #a4a1e3;
$custom-dark: #000000;
JSON
{
  "hex": "#797cd6",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 214
  },
  "hsl": {
    "h": 238.065,
    "s": 53.143,
    "l": 65.686
  },
  "oklch": {
    "l": 0.62402,
    "c": 0.13411,
    "h": 280.3
  },
  "luminance": 0.23335
}

Semantic roles & 50–950 ramp

primary
#797CD6
secondary
#E5E4C6
accent
#BC25C1
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100F15
muted
#7F7E83

Preview Lab

Preview with #797CD6

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

Preview Lab → · Contrast checker → · Palette generator →

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