#797DE7#797DE7

#797DE7 is a light, vivid blue. Relative luminance 0.245; OKLCH L 63.6% C 0.156 H 279.3°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#797DE7
RGBrgb(121, 125, 231)
HSLhsl(238, 70%, 69%)
HSVhsv(238, 48%, 91%)
CMYKcmyk(47.6%, 45.9%, 0%, 9.4%)
CIE-LABlab(56.59, 26.19, -54.38)
CIE-LCHlch(56.59, 60.36, 295.72°)
OKLaboklab(63.59% 0.0254 -0.1544)
OKLCHoklch(63.59% 0.156 279.3)
XYZxyz(29.6382, 24.5001, 78.7531)
Luminance0.2450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DE7 #E7E379
analogous
#79B4E7 #797DE7 #AC79E7
triadic
#797DE7 #E7797D #7DE779
tetradic
#797DE7 #E779B4 #E7E379 #79E7AC
square
#797DE7 #E779B4 #E7E379 #79E7AC
split-complementary
#797DE7 #E7AC79 #B4E779
monochromatic
#2329C3 #454BDE #797DE7 #ADAFF0 #E1E2FA

Accessibility & contrast

On white

3.56
#797DE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#797DE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DE7
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DE7#FFFFFF#000000##000000
##797DE71.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#518CEB
Deuteranopia (green-blind)
#4884E5
Tritanopia (blue-blind)
#5193A7
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797de7;
/* rgb */ color: rgb(121, 125, 231);
/* oklch */ color: oklch(63.6% 0.156 279.3);
Tailwind
colors: {
  custom: {
    50: '#a6a2ef',
    500: '#797de7',
    950: '#000000',
  },
}
SCSS
$custom: #797de7;
$custom-light: #a6a2ef;
$custom-dark: #000000;
JSON
{
  "hex": "#797de7",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 231
  },
  "hsl": {
    "h": 237.818,
    "s": 69.62,
    "l": 69.02
  },
  "oklch": {
    "l": 0.63589,
    "c": 0.15648,
    "h": 279.3
  },
  "luminance": 0.24502
}

Semantic roles & 50–950 ramp

primary
#797DE7
secondary
#EEEDCE
accent
#CB14D2
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100F16
muted
#7F7E84

Preview Lab

Preview with #797DE7

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

Preview Lab → · Contrast checker → · Palette generator →

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