#797DEB#797DEB

#797DEB is a light, vivid blue. Relative luminance 0.247; OKLCH L 63.8% C 0.162 H 279.2°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#797DEB
RGBrgb(121, 125, 235)
HSLhsl(238, 74%, 70%)
HSVhsv(238, 49%, 92%)
CMYKcmyk(48.5%, 46.8%, 0%, 7.8%)
CIE-LABlab(56.81, 27.39, -56.25)
CIE-LCHlch(56.81, 62.56, 295.96°)
OKLaboklab(63.83% 0.0259 -0.1599)
OKLCHoklch(63.83% 0.162 279.2)
XYZxyz(30.2096, 24.7287, 81.7624)
Luminance0.2473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DEB #EBE779
analogous
#79B6EB #797DEB #AE79EB
triadic
#797DEB #EB797D #7DEB79
tetradic
#797DEB #EB79B6 #EBE779 #79EBAE
square
#797DEB #EB79B6 #EBE779 #79EBAE
split-complementary
#797DEB #EBAE79 #B6EB79
monochromatic
#1E24CB #4449E3 #797DEB #AEB1F3 #E4E4FB

Accessibility & contrast

On white

3.53
#797DEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#797DEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DEB
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DEB#FFFFFF#000000##000000
##797DEB1.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8DEF
Deuteranopia (green-blind)
#4484E9
Tritanopia (blue-blind)
#4E95A9
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797deb;
/* rgb */ color: rgb(121, 125, 235);
/* oklch */ color: oklch(63.8% 0.162 279.2);
Tailwind
colors: {
  custom: {
    50: '#a6a2f2',
    500: '#797deb',
    950: '#000000',
  },
}
SCSS
$custom: #797deb;
$custom-light: #a6a2f2;
$custom-dark: #000000;
JSON
{
  "hex": "#797deb",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 235
  },
  "hsl": {
    "h": 237.895,
    "s": 74.026,
    "l": 69.804
  },
  "oklch": {
    "l": 0.63832,
    "c": 0.16197,
    "h": 279.2
  },
  "luminance": 0.2473
}

Semantic roles & 50–950 ramp

primary
#797DEB
secondary
#F0EFD0
accent
#CF0FD6
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #797DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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