#797DE9#797DE9

#797DE9 is a light, vivid blue. Relative luminance 0.246; OKLCH L 63.7% C 0.159 H 279.3°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#797DE9
RGBrgb(121, 125, 233)
HSLhsl(238, 72%, 69%)
HSVhsv(238, 48%, 91%)
CMYKcmyk(48.1%, 46.4%, 0%, 8.6%)
CIE-LABlab(56.70, 26.79, -55.32)
CIE-LCHlch(56.70, 61.46, 295.84°)
OKLaboklab(63.71% 0.0256 -0.1572)
OKLCHoklch(63.71% 0.159 279.3)
XYZxyz(29.9222, 24.6137, 80.2492)
Luminance0.2462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DE9 #E9E579
analogous
#79B5E9 #797DE9 #AD79E9
triadic
#797DE9 #E9797D #7DE979
tetradic
#797DE9 #E979B5 #E9E579 #79E9AD
square
#797DE9 #E979B5 #E9E579 #79E9AD
split-complementary
#797DE9 #E9AD79 #B5E979
monochromatic
#2127C7 #444AE0 #797DE9 #AEB0F2 #E2E3FA

Accessibility & contrast

On white

3.55
#797DE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#797DE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DE9
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DE9#FFFFFF#000000##000000
##797DE91.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8CED
Deuteranopia (green-blind)
#4684E7
Tritanopia (blue-blind)
#4F94A8
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797de9;
/* rgb */ color: rgb(121, 125, 233);
/* oklch */ color: oklch(63.7% 0.159 279.3);
Tailwind
colors: {
  custom: {
    50: '#a6a2f0',
    500: '#797de9',
    950: '#000000',
  },
}
SCSS
$custom: #797de9;
$custom-light: #a6a2f0;
$custom-dark: #000000;
JSON
{
  "hex": "#797de9",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 233
  },
  "hsl": {
    "h": 237.857,
    "s": 71.795,
    "l": 69.412
  },
  "oklch": {
    "l": 0.6371,
    "c": 0.15922,
    "h": 279.3
  },
  "luminance": 0.24615
}

Semantic roles & 50–950 ramp

primary
#797DE9
secondary
#EFEECF
accent
#CD12D4
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #797DE9

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

Preview Lab → · Contrast checker → · Palette generator →

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