#797CD8#797CD8

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

Color values

HEX#797CD8
RGBrgb(121, 124, 216)
HSLhsl(238, 55%, 66%)
HSVhsv(238, 44%, 85%)
CMYKcmyk(44%, 42.6%, 0%, 15.3%)
CIE-LABlab(55.52, 22.36, -47.67)
CIE-LCHlch(55.52, 52.65, 295.13°)
OKLaboklab(62.52% 0.0244 -0.1347)
OKLCHoklch(62.52% 0.137 280.2)
XYZxyz(27.4838, 23.4368, 68.0280)
Luminance0.2344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CD8 #D8D579
analogous
#79ABD8 #797CD8 #A579D8
triadic
#797CD8 #D8797C #7CD879
tetradic
#797CD8 #D879AB #D8D579 #79D8A5
square
#797CD8 #D879AB #D8D579 #79D8A5
split-complementary
#797CD8 #D8A579 #ABD879
monochromatic
#3034A6 #4A4ECA #797CD8 #A8AAE6 #D8D9F4

Accessibility & contrast

On white

3.69
#797CD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#797CD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CD8
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CD8#FFFFFF#000000##000000
##797CD81.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5989DB
Deuteranopia (green-blind)
#5382D6
Tritanopia (blue-blind)
#5A8F9F
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #797cd8;
/* rgb */ color: rgb(121, 124, 216);
/* oklch */ color: oklch(62.5% 0.137 280.2);
Tailwind
colors: {
  custom: {
    50: '#a4a1e4',
    500: '#797cd8',
    950: '#000000',
  },
}
SCSS
$custom: #797cd8;
$custom-light: #a4a1e4;
$custom-dark: #000000;
JSON
{
  "hex": "#797cd8",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 216
  },
  "hsl": {
    "h": 238.105,
    "s": 54.913,
    "l": 66.078
  },
  "oklch": {
    "l": 0.62515,
    "c": 0.13693,
    "h": 280.2
  },
  "luminance": 0.23438
}

Semantic roles & 50–950 ramp

primary
#797CD8
secondary
#E6E5C7
accent
#BD23C2
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100F16
muted
#7F7E84

Preview Lab

Preview with #797CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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