#797CD7#797CD7

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

Color values

HEX#797CD7
RGBrgb(121, 124, 215)
HSLhsl(238, 54%, 66%)
HSVhsv(238, 44%, 84%)
CMYKcmyk(43.7%, 42.3%, 0%, 15.7%)
CIE-LABlab(55.47, 22.07, -47.19)
CIE-LCHlch(55.47, 52.09, 295.07°)
OKLaboklab(62.46% 0.0242 -0.1333)
OKLCHoklch(62.46% 0.136 280.3)
XYZxyz(27.3549, 23.3853, 67.3493)
Luminance0.2339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CD7 #D7D479
analogous
#79ABD7 #797CD7 #A579D7
triadic
#797CD7 #D7797C #7CD779
tetradic
#797CD7 #D779AB #D7D479 #79D7A5
square
#797CD7 #D779AB #D7D479 #79D7A5
split-complementary
#797CD7 #D7A579 #ABD779
monochromatic
#3135A4 #4A4EC9 #797CD7 #A8AAE5 #D7D8F3

Accessibility & contrast

On white

3.70
#797CD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##797CD7#FFFFFF#000000##000000
##797CD71.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A88DA
Deuteranopia (green-blind)
#5481D5
Tritanopia (blue-blind)
#5A8F9F
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #797cd7;
/* rgb */ color: rgb(121, 124, 215);
/* oklch */ color: oklch(62.5% 0.136 280.3);
Tailwind
colors: {
  custom: {
    50: '#a4a1e4',
    500: '#797cd7',
    950: '#000000',
  },
}
SCSS
$custom: #797cd7;
$custom-light: #a4a1e4;
$custom-dark: #000000;
JSON
{
  "hex": "#797cd7",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 215
  },
  "hsl": {
    "h": 238.085,
    "s": 54.023,
    "l": 65.882
  },
  "oklch": {
    "l": 0.62458,
    "c": 0.13553,
    "h": 280.3
  },
  "luminance": 0.23387
}

Semantic roles & 50–950 ramp

primary
#797CD7
secondary
#E5E4C6
accent
#BC24C1
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100F15
muted
#7F7E84

Preview Lab

Preview with #797CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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