#797FD1#797FD1

#797FD1 is a light, vivid blue. Relative luminance 0.238; OKLCH L 62.7% C 0.123 H 279.0°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#797FD1
RGBrgb(121, 127, 209)
HSLhsl(236, 49%, 65%)
HSVhsv(236, 42%, 82%)
CMYKcmyk(42.1%, 39.2%, 0%, 18%)
CIE-LABlab(55.93, 18.54, -43.07)
CIE-LCHlch(55.93, 46.89, 293.30°)
OKLaboklab(62.71% 0.0193 -0.1213)
OKLCHoklch(62.71% 0.123 279)
XYZxyz(26.9797, 23.8459, 63.4904)
Luminance0.2385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FD1 #D1CB79
analogous
#79ABD1 #797FD1 #9F79D1
triadic
#797FD1 #D1797F #7FD179
tetradic
#797FD1 #D179AB #D1CB79 #79D19F
square
#797FD1 #D179AB #D1CB79 #79D19F
split-complementary
#797FD1 #D19F79 #ABD179
monochromatic
#353C9B #4B53C1 #797FD1 #A7ABE1 #D4D6F0

Accessibility & contrast

On white

3.64
#797FD1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#797FD1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FD1
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FD1#FFFFFF#000000##000000
##797FD11.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6289D4
Deuteranopia (green-blind)
#5C83CF
Tritanopia (blue-blind)
#5D8F9E
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #797fd1;
/* rgb */ color: rgb(121, 127, 209);
/* oklch */ color: oklch(62.7% 0.123 279.0);
Tailwind
colors: {
  custom: {
    50: '#a3a4df',
    500: '#797fd1',
    950: '#000000',
  },
}
SCSS
$custom: #797fd1;
$custom-light: #a3a4df;
$custom-dark: #000000;
JSON
{
  "hex": "#797fd1",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 209
  },
  "hsl": {
    "h": 235.909,
    "s": 48.889,
    "l": 64.706
  },
  "oklch": {
    "l": 0.62714,
    "c": 0.12283,
    "h": 279
  },
  "luminance": 0.23847
}

Semantic roles & 50–950 ramp

primary
#797FD1
secondary
#E2E0C4
accent
#B229BC
background
#FAFAFD
surface
#F4F3FB
border
#CECDD4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #797FD1

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

Preview Lab → · Contrast checker → · Palette generator →

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