#797DEA#797DEA

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

Color values

HEX#797DEA
RGBrgb(121, 125, 234)
HSLhsl(238, 73%, 70%)
HSVhsv(238, 48%, 92%)
CMYKcmyk(48.3%, 46.6%, 0%, 8.2%)
CIE-LABlab(56.75, 27.09, -55.79)
CIE-LCHlch(56.75, 62.01, 295.90°)
OKLaboklab(63.77% 0.0257 -0.1585)
OKLCHoklch(63.77% 0.161 279.2)
XYZxyz(30.0655, 24.6710, 81.0037)
Luminance0.2467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DEA #EAE679
analogous
#79B6EA #797DEA #AE79EA
triadic
#797DEA #EA797D #7DEA79
tetradic
#797DEA #EA79B6 #EAE679 #79EAAE
square
#797DEA #EA79B6 #EAE679 #79EAAE
split-complementary
#797DEA #EAAE79 #B6EA79
monochromatic
#2026C9 #444AE2 #797DEA #AEB0F2 #E3E4FB

Accessibility & contrast

On white

3.54
#797DEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#797DEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DEA
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DEA#FFFFFF#000000##000000
##797DEA1.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8DEE
Deuteranopia (green-blind)
#4584E8
Tritanopia (blue-blind)
#4F94A8
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797dea;
/* rgb */ color: rgb(121, 125, 234);
/* oklch */ color: oklch(63.8% 0.161 279.2);
Tailwind
colors: {
  custom: {
    50: '#a6a2f1',
    500: '#797dea',
    950: '#000000',
  },
}
SCSS
$custom: #797dea;
$custom-light: #a6a2f1;
$custom-dark: #000000;
JSON
{
  "hex": "#797dea",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 234
  },
  "hsl": {
    "h": 237.876,
    "s": 72.903,
    "l": 69.608
  },
  "oklch": {
    "l": 0.63771,
    "c": 0.1606,
    "h": 279.2
  },
  "luminance": 0.24673
}

Semantic roles & 50–950 ramp

primary
#797DEA
secondary
#F0EECF
accent
#CE11D5
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #797DEA

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

Preview Lab → · Contrast checker → · Palette generator →

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