#797CE1#797CE1

#797CE1 is a light, vivid blue. Relative luminance 0.239; OKLCH L 63.0% C 0.150 H 279.9°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#797CE1
RGBrgb(121, 124, 225)
HSLhsl(238, 63%, 68%)
HSVhsv(238, 46%, 88%)
CMYKcmyk(46.2%, 44.9%, 0%, 11.8%)
CIE-LABlab(56.00, 25.01, -51.96)
CIE-LCHlch(56.00, 57.66, 295.70°)
OKLaboklab(63.04% 0.0257 -0.1473)
OKLCHoklch(63.04% 0.15 279.9)
XYZxyz(28.6793, 23.9150, 74.3245)
Luminance0.2392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CE1 #E1DE79
analogous
#79B0E1 #797CE1 #AA79E1
triadic
#797CE1 #E1797C #7CE179
tetradic
#797CE1 #E179B0 #E1DE79 #79E1AA
square
#797CE1 #E179B0 #E1DE79 #79E1AA
split-complementary
#797CE1 #E1AA79 #B0E179
monochromatic
#292DB7 #474BD6 #797CE1 #ABADEC #DDDEF7

Accessibility & contrast

On white

3.63
#797CE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#797CE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CE1
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CE1#FFFFFF#000000##000000
##797CE11.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#538AE5
Deuteranopia (green-blind)
#4C82DF
Tritanopia (blue-blind)
#5591A4
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #797ce1;
/* rgb */ color: rgb(121, 124, 225);
/* oklch */ color: oklch(63.0% 0.150 279.9);
Tailwind
colors: {
  custom: {
    50: '#a5a1eb',
    500: '#797ce1',
    950: '#000000',
  },
}
SCSS
$custom: #797ce1;
$custom-light: #a5a1eb;
$custom-dark: #000000;
JSON
{
  "hex": "#797ce1",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 225
  },
  "hsl": {
    "h": 238.269,
    "s": 63.415,
    "l": 67.843
  },
  "oklch": {
    "l": 0.6304,
    "c": 0.14953,
    "h": 279.9
  },
  "luminance": 0.23916
}

Semantic roles & 50–950 ramp

primary
#797CE1
secondary
#EBEACB
accent
#C61ACB
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100F16
muted
#7F7E84

Preview Lab

Preview with #797CE1

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

Preview Lab → · Contrast checker → · Palette generator →

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