#797DE8#797DE8

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

Color values

HEX#797DE8
RGBrgb(121, 125, 232)
HSLhsl(238, 71%, 69%)
HSVhsv(238, 48%, 91%)
CMYKcmyk(47.8%, 46.1%, 0%, 9%)
CIE-LABlab(56.64, 26.49, -54.85)
CIE-LCHlch(56.64, 60.91, 295.78°)
OKLaboklab(63.65% 0.0255 -0.1558)
OKLCHoklch(63.65% 0.158 279.3)
XYZxyz(29.7798, 24.5568, 79.4990)
Luminance0.2456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DE8 #E8E479
analogous
#79B5E8 #797DE8 #AD79E8
triadic
#797DE8 #E8797D #7DE879
tetradic
#797DE8 #E879B5 #E8E479 #79E8AD
square
#797DE8 #E879B5 #E8E479 #79E8AD
split-complementary
#797DE8 #E8AD79 #B5E879
monochromatic
#2228C5 #454ADF #797DE8 #ADB0F1 #E1E2FA

Accessibility & contrast

On white

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

On black

5.91
#797DE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DE8
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DE8#FFFFFF#000000##000000
##797DE81.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#508CEC
Deuteranopia (green-blind)
#4784E6
Tritanopia (blue-blind)
#5094A7
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797de8;
/* rgb */ color: rgb(121, 125, 232);
/* oklch */ color: oklch(63.6% 0.158 279.3);
Tailwind
colors: {
  custom: {
    50: '#a6a2f0',
    500: '#797de8',
    950: '#000000',
  },
}
SCSS
$custom: #797de8;
$custom-light: #a6a2f0;
$custom-dark: #000000;
JSON
{
  "hex": "#797de8",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 232
  },
  "hsl": {
    "h": 237.838,
    "s": 70.701,
    "l": 69.216
  },
  "oklch": {
    "l": 0.63649,
    "c": 0.15785,
    "h": 279.3
  },
  "luminance": 0.24558
}

Semantic roles & 50–950 ramp

primary
#797DE8
secondary
#EFEDCE
accent
#CC13D3
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100F16
muted
#7F7E84

Preview Lab

Preview with #797DE8

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

Preview Lab → · Contrast checker → · Palette generator →

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