#797DE4#797DE4

#797DE4 is a light, vivid blue. Relative luminance 0.243; OKLCH L 63.4% C 0.152 H 279.4°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#797DE4
RGBrgb(121, 125, 228)
HSLhsl(238, 66%, 68%)
HSVhsv(238, 47%, 89%)
CMYKcmyk(46.9%, 45.2%, 0%, 10.6%)
CIE-LABlab(56.42, 25.30, -52.97)
CIE-LCHlch(56.42, 58.70, 295.53°)
OKLaboklab(63.41% 0.025 -0.1503)
OKLCHoklch(63.41% 0.152 279.4)
XYZxyz(29.2181, 24.3321, 76.5407)
Luminance0.2433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DE4 #E4E079
analogous
#79B2E4 #797DE4 #AA79E4
triadic
#797DE4 #E4797D #7DE479
tetradic
#797DE4 #E479B2 #E4E079 #79E4AA
square
#797DE4 #E479B2 #E4E079 #79E4AA
split-complementary
#797DE4 #E4AA79 #B2E479
monochromatic
#262CBD #464CDA #797DE4 #ACAEEE #DFE0F9

Accessibility & contrast

On white

3.58
#797DE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#797DE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DE4
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DE4#FFFFFF#000000##000000
##797DE41.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#538BE8
Deuteranopia (green-blind)
#4B83E2
Tritanopia (blue-blind)
#5393A5
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #797de4;
/* rgb */ color: rgb(121, 125, 228);
/* oklch */ color: oklch(63.4% 0.152 279.4);
Tailwind
colors: {
  custom: {
    50: '#a5a2ed',
    500: '#797de4',
    950: '#000000',
  },
}
SCSS
$custom: #797de4;
$custom-light: #a5a2ed;
$custom-dark: #000000;
JSON
{
  "hex": "#797de4",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 228
  },
  "hsl": {
    "h": 237.757,
    "s": 66.46,
    "l": 68.431
  },
  "oklch": {
    "l": 0.63409,
    "c": 0.15233,
    "h": 279.4
  },
  "luminance": 0.24334
}

Semantic roles & 50–950 ramp

primary
#797DE4
secondary
#ECEBCC
accent
#C717CE
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100F16
muted
#7F7E84

Preview Lab

Preview with #797DE4

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

Preview Lab → · Contrast checker → · Palette generator →

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