#797ED3#797ED3

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

Color values

HEX#797ED3
RGBrgb(121, 126, 211)
HSLhsl(237, 51%, 65%)
HSVhsv(237, 43%, 83%)
CMYKcmyk(42.7%, 40.3%, 0%, 17.3%)
CIE-LABlab(55.77, 19.72, -44.45)
CIE-LCHlch(55.77, 48.62, 293.92°)
OKLaboklab(62.63% 0.021 -0.1253)
OKLCHoklch(62.63% 0.127 279.5)
XYZxyz(27.1004, 23.6886, 64.7598)
Luminance0.2369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797ED3 #D3CE79
analogous
#79ABD3 #797ED3 #A179D3
triadic
#797ED3 #D3797E #7ED379
tetradic
#797ED3 #D379AB #D3CE79 #79D3A1
square
#797ED3 #D379AB #D3CE79 #79D3A1
split-complementary
#797ED3 #D3A179 #ABD379
monochromatic
#343A9E #4B52C4 #797ED3 #A7AAE2 #D5D7F1

Accessibility & contrast

On white

3.66
#797ED3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#797ED3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797ED3
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797ED3#FFFFFF#000000##000000
##797ED31.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F89D6
Deuteranopia (green-blind)
#5A82D1
Tritanopia (blue-blind)
#5C8F9E
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #797ed3;
/* rgb */ color: rgb(121, 126, 211);
/* oklch */ color: oklch(62.6% 0.127 279.5);
Tailwind
colors: {
  custom: {
    50: '#a4a3e1',
    500: '#797ed3',
    950: '#000000',
  },
}
SCSS
$custom: #797ed3;
$custom-light: #a4a3e1;
$custom-dark: #000000;
JSON
{
  "hex": "#797ed3",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 211
  },
  "hsl": {
    "h": 236.667,
    "s": 50.562,
    "l": 65.098
  },
  "oklch": {
    "l": 0.62626,
    "c": 0.12707,
    "h": 279.5
  },
  "luminance": 0.2369
}

Semantic roles & 50–950 ramp

primary
#797ED3
secondary
#E3E1C5
accent
#B628BE
background
#FAFAFD
surface
#F4F3FB
border
#CECDD4
text
#0F0F15
muted
#7F7F83

Preview Lab

Preview with #797ED3

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

Preview Lab → · Contrast checker → · Palette generator →

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