#797ED2#797ED2

#797ED2 is a light, vivid blue. Relative luminance 0.236; OKLCH L 62.6% C 0.126 H 279.5°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#797ED2
RGBrgb(121, 126, 210)
HSLhsl(237, 50%, 65%)
HSVhsv(237, 42%, 82%)
CMYKcmyk(42.4%, 40%, 0%, 17.6%)
CIE-LABlab(55.72, 19.43, -43.96)
CIE-LCHlch(55.72, 48.06, 293.84°)
OKLaboklab(62.57% 0.0208 -0.1239)
OKLCHoklch(62.57% 0.126 279.5)
XYZxyz(26.9754, 23.6386, 64.1016)
Luminance0.2364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797ED2 #D2CD79
analogous
#79ABD2 #797ED2 #A079D2
triadic
#797ED2 #D2797E #7ED279
tetradic
#797ED2 #D279AB #D2CD79 #79D2A0
square
#797ED2 #D279AB #D2CD79 #79D2A0
split-complementary
#797ED2 #D2A079 #ABD279
monochromatic
#343A9C #4B52C3 #797ED2 #A7AAE1 #D5D6F1

Accessibility & contrast

On white

3.67
#797ED2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#797ED2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797ED2
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797ED2#FFFFFF#000000##000000
##797ED21.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6089D5
Deuteranopia (green-blind)
#5A82D0
Tritanopia (blue-blind)
#5D8F9E
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #797ed2;
/* rgb */ color: rgb(121, 126, 210);
/* oklch */ color: oklch(62.6% 0.126 279.5);
Tailwind
colors: {
  custom: {
    50: '#a4a3e0',
    500: '#797ed2',
    950: '#000000',
  },
}
SCSS
$custom: #797ed2;
$custom-light: #a4a3e0;
$custom-dark: #000000;
JSON
{
  "hex": "#797ed2",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 210
  },
  "hsl": {
    "h": 236.629,
    "s": 49.721,
    "l": 64.902
  },
  "oklch": {
    "l": 0.62571,
    "c": 0.12564,
    "h": 279.5
  },
  "luminance": 0.2364
}

Semantic roles & 50–950 ramp

primary
#797ED2
secondary
#E3E1C4
accent
#B528BD
background
#FAFAFD
surface
#F4F3FB
border
#CECDD4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #797ED2

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

Preview Lab → · Contrast checker → · Palette generator →

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