#797BD0#797BD0

#797BD0 is a mid, vivid blue. Relative luminance 0.228; OKLCH L 61.9% C 0.127 H 281.0°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#797BD0
RGBrgb(121, 123, 208)
HSLhsl(239, 48%, 65%)
HSVhsv(239, 42%, 82%)
CMYKcmyk(41.8%, 40.9%, 0%, 18.4%)
CIE-LABlab(54.85, 20.64, -44.21)
CIE-LCHlch(54.85, 48.79, 295.03°)
OKLaboklab(61.87% 0.0242 -0.1247)
OKLCHoklch(61.87% 0.127 281)
XYZxyz(26.3499, 22.7838, 62.6716)
Luminance0.2278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BD0 #D0CE79
analogous
#79A7D0 #797BD0 #A379D0
triadic
#797BD0 #D0797B #7BD079
tetradic
#797BD0 #D079A7 #D0CE79 #79D0A3
square
#797BD0 #D079A7 #D0CE79 #79D0A3
split-complementary
#797BD0 #D0A379 #A7D079
monochromatic
#363899 #4C4EC0 #797BD0 #A6A8E0 #D4D4F0

Accessibility & contrast

On white

3.78
#797BD0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#797BD0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BD0
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BD0#FFFFFF#000000##000000
##797BD01.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D86D3
Deuteranopia (green-blind)
#5880CE
Tritanopia (blue-blind)
#5E8C9B
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797bd0;
/* rgb */ color: rgb(121, 123, 208);
/* oklch */ color: oklch(61.9% 0.127 281.0);
Tailwind
colors: {
  custom: {
    50: '#a3a1df',
    500: '#797bd0',
    950: '#000000',
  },
}
SCSS
$custom: #797bd0;
$custom-light: #a3a1df;
$custom-dark: #000000;
JSON
{
  "hex": "#797bd0",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 208
  },
  "hsl": {
    "h": 238.621,
    "s": 48.066,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61869,
    "c": 0.12699,
    "h": 281
  },
  "luminance": 0.22785
}

Semantic roles & 50–950 ramp

primary
#797BD0
secondary
#E1E1C3
accent
#B82ABB
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #797BD0

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

Preview Lab → · Contrast checker → · Palette generator →

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