#797CD5#797CD5

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

Color values

HEX#797CD5
RGBrgb(121, 124, 213)
HSLhsl(238, 52%, 65%)
HSVhsv(238, 43%, 84%)
CMYKcmyk(43.2%, 41.8%, 0%, 16.5%)
CIE-LABlab(55.36, 21.49, -46.23)
CIE-LCHlch(55.36, 50.98, 294.93°)
OKLaboklab(62.34% 0.0239 -0.1305)
OKLCHoklch(62.34% 0.133 280.4)
XYZxyz(27.0995, 23.2831, 66.0041)
Luminance0.2328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CD5 #D5D279
analogous
#79AAD5 #797CD5 #A479D5
triadic
#797CD5 #D5797C #7CD579
tetradic
#797CD5 #D579AA #D5D279 #79D5A4
square
#797CD5 #D579AA #D5D279 #79D5A4
split-complementary
#797CD5 #D5A479 #AAD579
monochromatic
#3236A1 #4A4EC6 #797CD5 #A8AAE4 #D6D7F2

Accessibility & contrast

On white

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

On black

5.66
#797CD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CD5
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CD5#FFFFFF#000000##000000
##797CD51.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B88D8
Deuteranopia (green-blind)
#5681D3
Tritanopia (blue-blind)
#5B8E9E
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #797cd5;
/* rgb */ color: rgb(121, 124, 213);
/* oklch */ color: oklch(62.3% 0.133 280.4);
Tailwind
colors: {
  custom: {
    50: '#a4a1e2',
    500: '#797cd5',
    950: '#000000',
  },
}
SCSS
$custom: #797cd5;
$custom-light: #a4a1e2;
$custom-dark: #000000;
JSON
{
  "hex": "#797cd5",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 213
  },
  "hsl": {
    "h": 238.043,
    "s": 52.273,
    "l": 65.49
  },
  "oklch": {
    "l": 0.62345,
    "c": 0.13269,
    "h": 280.4
  },
  "luminance": 0.23284
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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