#797CD1#797CD1

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

Color values

HEX#797CD1
RGBrgb(121, 124, 209)
HSLhsl(238, 49%, 65%)
HSVhsv(238, 42%, 82%)
CMYKcmyk(42.1%, 40.7%, 0%, 18%)
CIE-LABlab(55.16, 20.33, -44.29)
CIE-LCHlch(55.16, 48.74, 294.66°)
OKLaboklab(62.12% 0.0231 -0.1249)
OKLCHoklch(62.12% 0.127 280.5)
XYZxyz(26.5980, 23.0825, 63.3631)
Luminance0.2308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CD1 #D1CE79
analogous
#79A8D1 #797CD1 #A279D1
triadic
#797CD1 #D1797C #7CD179
tetradic
#797CD1 #D179A8 #D1CE79 #79D1A2
square
#797CD1 #D179A8 #D1CE79 #79D1A2
split-complementary
#797CD1 #D1A279 #A8D179
monochromatic
#35399B #4B4FC1 #797CD1 #A7A9E1 #D4D5F0

Accessibility & contrast

On white

3.74
#797CD1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#797CD1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CD1
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CD1#FFFFFF#000000##000000
##797CD11.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D87D4
Deuteranopia (green-blind)
#5881CF
Tritanopia (blue-blind)
#5D8D9C
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797cd1;
/* rgb */ color: rgb(121, 124, 209);
/* oklch */ color: oklch(62.1% 0.127 280.5);
Tailwind
colors: {
  custom: {
    50: '#a3a1df',
    500: '#797cd1',
    950: '#000000',
  },
}
SCSS
$custom: #797cd1;
$custom-light: #a3a1df;
$custom-dark: #000000;
JSON
{
  "hex": "#797cd1",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 209
  },
  "hsl": {
    "h": 237.955,
    "s": 48.889,
    "l": 64.706
  },
  "oklch": {
    "l": 0.62121,
    "c": 0.12701,
    "h": 280.5
  },
  "luminance": 0.23084
}

Semantic roles & 50–950 ramp

primary
#797CD1
secondary
#E2E1C4
accent
#B729BC
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #797CD1

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

Preview Lab → · Contrast checker → · Palette generator →

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