#797DE3#797DE3

#797DE3 is a light, vivid blue. Relative luminance 0.243; OKLCH L 63.3% C 0.151 H 279.5°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#797DE3
RGBrgb(121, 125, 227)
HSLhsl(238, 65%, 68%)
HSVhsv(238, 47%, 89%)
CMYKcmyk(46.7%, 44.9%, 0%, 11%)
CIE-LABlab(56.36, 25.00, -52.50)
CIE-LCHlch(56.36, 58.15, 295.47°)
OKLaboklab(63.35% 0.0248 -0.1489)
OKLCHoklch(63.35% 0.151 279.5)
XYZxyz(29.0797, 24.2767, 75.8118)
Luminance0.2428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DE3 #E3DF79
analogous
#79B2E3 #797DE3 #AA79E3
triadic
#797DE3 #E3797D #7DE379
tetradic
#797DE3 #E379B2 #E3DF79 #79E3AA
square
#797DE3 #E379B2 #E3DF79 #79E3AA
split-complementary
#797DE3 #E3AA79 #B2E379
monochromatic
#272DBB #464CD8 #797DE3 #ACAEEE #DEDFF8

Accessibility & contrast

On white

3.59
#797DE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#797DE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DE3
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DE3#FFFFFF#000000##000000
##797DE31.003.595.865.86
#FFFFFF3.591.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#548BE7
Deuteranopia (green-blind)
#4C83E1
Tritanopia (blue-blind)
#5392A5
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #797de3;
/* rgb */ color: rgb(121, 125, 227);
/* oklch */ color: oklch(63.3% 0.151 279.5);
Tailwind
colors: {
  custom: {
    50: '#a5a2ec',
    500: '#797de3',
    950: '#000000',
  },
}
SCSS
$custom: #797de3;
$custom-light: #a5a2ec;
$custom-dark: #000000;
JSON
{
  "hex": "#797de3",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 227
  },
  "hsl": {
    "h": 237.736,
    "s": 65.432,
    "l": 68.235
  },
  "oklch": {
    "l": 0.63349,
    "c": 0.15095,
    "h": 279.5
  },
  "luminance": 0.24278
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797DE3

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

Preview Lab → · Contrast checker → · Palette generator →

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