#797CD2#797CD2

#797CD2 is a light, vivid blue. Relative luminance 0.231; OKLCH L 62.2% C 0.128 H 280.5°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#797CD2
RGBrgb(121, 124, 210)
HSLhsl(238, 50%, 65%)
HSVhsv(238, 42%, 82%)
CMYKcmyk(42.4%, 41%, 0%, 17.6%)
CIE-LABlab(55.21, 20.62, -44.78)
CIE-LCHlch(55.21, 49.30, 294.73°)
OKLaboklab(62.18% 0.0233 -0.1263)
OKLCHoklch(62.18% 0.128 280.5)
XYZxyz(26.7222, 23.1322, 64.0172)
Luminance0.2313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CD2 #D2CF79
analogous
#79A8D2 #797CD2 #A379D2
triadic
#797CD2 #D2797C #7CD279
tetradic
#797CD2 #D279A8 #D2CF79 #79D2A3
square
#797CD2 #D279A8 #D2CF79 #79D2A3
split-complementary
#797CD2 #D2A379 #A8D279
monochromatic
#34389C #4B4FC3 #797CD2 #A7A9E1 #D5D6F1

Accessibility & contrast

On white

3.73
#797CD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#797CD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CD2
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CD2#FFFFFF#000000##000000
##797CD21.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D88D5
Deuteranopia (green-blind)
#5881D0
Tritanopia (blue-blind)
#5D8D9D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797cd2;
/* rgb */ color: rgb(121, 124, 210);
/* oklch */ color: oklch(62.2% 0.128 280.5);
Tailwind
colors: {
  custom: {
    50: '#a4a1e0',
    500: '#797cd2',
    950: '#000000',
  },
}
SCSS
$custom: #797cd2;
$custom-light: #a4a1e0;
$custom-dark: #000000;
JSON
{
  "hex": "#797cd2",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 210
  },
  "hsl": {
    "h": 237.978,
    "s": 49.721,
    "l": 64.902
  },
  "oklch": {
    "l": 0.62177,
    "c": 0.12843,
    "h": 280.5
  },
  "luminance": 0.23133
}

Semantic roles & 50–950 ramp

primary
#797CD2
secondary
#E3E2C4
accent
#B828BD
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #797CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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