#797DD5#797DD5

#797DD5 is a light, vivid blue. Relative luminance 0.235; OKLCH L 62.5% C 0.131 H 279.9°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#797DD5
RGBrgb(121, 125, 213)
HSLhsl(237, 52%, 65%)
HSVhsv(237, 43%, 84%)
CMYKcmyk(43.2%, 41.3%, 0%, 16.5%)
CIE-LABlab(55.62, 20.89, -45.82)
CIE-LCHlch(55.62, 50.36, 294.51°)
OKLaboklab(62.54% 0.0226 -0.1293)
OKLCHoklch(62.54% 0.131 279.9)
XYZxyz(27.2254, 23.5350, 66.0461)
Luminance0.2354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DD5 #D5D179
analogous
#79ABD5 #797DD5 #A379D5
triadic
#797DD5 #D5797D #7DD579
tetradic
#797DD5 #D579AB #D5D179 #79D5A3
square
#797DD5 #D579AB #D5D179 #79D5A3
split-complementary
#797DD5 #D5A379 #ABD579
monochromatic
#3237A1 #4A50C6 #797DD5 #A8AAE4 #D6D7F2

Accessibility & contrast

On white

3.68
#797DD5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#797DD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DD5
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DD5#FFFFFF#000000##000000
##797DD51.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D89D8
Deuteranopia (green-blind)
#5782D3
Tritanopia (blue-blind)
#5B8F9F
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #797dd5;
/* rgb */ color: rgb(121, 125, 213);
/* oklch */ color: oklch(62.5% 0.131 279.9);
Tailwind
colors: {
  custom: {
    50: '#a4a2e2',
    500: '#797dd5',
    950: '#000000',
  },
}
SCSS
$custom: #797dd5;
$custom-light: #a4a2e2;
$custom-dark: #000000;
JSON
{
  "hex": "#797dd5",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 213
  },
  "hsl": {
    "h": 237.391,
    "s": 52.273,
    "l": 65.49
  },
  "oklch": {
    "l": 0.62541,
    "c": 0.1313,
    "h": 279.9
  },
  "luminance": 0.23536
}

Semantic roles & 50–950 ramp

primary
#797DD5
secondary
#E4E3C5
accent
#B926C0
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0F15
muted
#7F7E83

Preview Lab

Preview with #797DD5

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

Preview Lab → · Contrast checker → · Palette generator →

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