#797BD4#797BD4

#797BD4 is a light, vivid blue. Relative luminance 0.230; OKLCH L 62.1% C 0.133 H 280.8°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#797BD4
RGBrgb(121, 123, 212)
HSLhsl(239, 51%, 65%)
HSVhsv(239, 43%, 83%)
CMYKcmyk(42.9%, 42%, 0%, 16.9%)
CIE-LABlab(55.05, 21.80, -46.15)
CIE-LCHlch(55.05, 51.04, 295.28°)
OKLaboklab(62.09% 0.0249 -0.1303)
OKLCHoklch(62.09% 0.133 280.8)
XYZxyz(26.8483, 22.9831, 65.2961)
Luminance0.2298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BD4 #D4D279
analogous
#79A9D4 #797BD4 #A479D4
triadic
#797BD4 #D4797B #7BD479
tetradic
#797BD4 #D479A9 #D4D279 #79D4A4
square
#797BD4 #D479A9 #D4D279 #79D4A4
split-complementary
#797BD4 #D4A479 #A9D479
monochromatic
#33369F #4B4DC5 #797BD4 #A7A9E3 #D6D6F2

Accessibility & contrast

On white

3.75
#797BD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#797BD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BD4
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BD4#FFFFFF#000000##000000
##797BD41.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A87D7
Deuteranopia (green-blind)
#5581D2
Tritanopia (blue-blind)
#5C8D9D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797bd4;
/* rgb */ color: rgb(121, 123, 212);
/* oklch */ color: oklch(62.1% 0.133 280.8);
Tailwind
colors: {
  custom: {
    50: '#a4a1e1',
    500: '#797bd4',
    950: '#000000',
  },
}
SCSS
$custom: #797bd4;
$custom-light: #a4a1e1;
$custom-dark: #000000;
JSON
{
  "hex": "#797bd4",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 212
  },
  "hsl": {
    "h": 238.681,
    "s": 51.412,
    "l": 65.294
  },
  "oklch": {
    "l": 0.62093,
    "c": 0.13267,
    "h": 280.8
  },
  "luminance": 0.22984
}

Semantic roles & 50–950 ramp

primary
#797BD4
secondary
#E4E3C5
accent
#BB27BF
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #797BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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