#797BD2#797BD2

#797BD2 is a mid, vivid blue. Relative luminance 0.229; OKLCH L 62.0% C 0.130 H 280.9°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#797BD2
RGBrgb(121, 123, 210)
HSLhsl(239, 50%, 65%)
HSVhsv(239, 42%, 82%)
CMYKcmyk(42.4%, 41.4%, 0%, 17.6%)
CIE-LABlab(54.95, 21.22, -45.18)
CIE-LCHlch(54.95, 49.92, 295.15°)
OKLaboklab(61.98% 0.0246 -0.1275)
OKLCHoklch(61.98% 0.13 280.9)
XYZxyz(26.5976, 22.8828, 63.9757)
Luminance0.2288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BD2 #D2D079
analogous
#79A7D2 #797BD2 #A479D2
triadic
#797BD2 #D2797B #7BD279
tetradic
#797BD2 #D279A7 #D2D079 #79D2A4
square
#797BD2 #D279A7 #D2D079 #79D2A4
split-complementary
#797BD2 #D2A479 #A7D279
monochromatic
#34379C #4B4EC3 #797BD2 #A7A8E1 #D5D5F1

Accessibility & contrast

On white

3.77
#797BD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#797BD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BD2
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BD2#FFFFFF#000000##000000
##797BD21.003.775.585.58
#FFFFFF3.771.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B87D5
Deuteranopia (green-blind)
#5680D0
Tritanopia (blue-blind)
#5D8D9C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #797bd2;
/* rgb */ color: rgb(121, 123, 210);
/* oklch */ color: oklch(62.0% 0.130 280.9);
Tailwind
colors: {
  custom: {
    50: '#a4a1e0',
    500: '#797bd2',
    950: '#000000',
  },
}
SCSS
$custom: #797bd2;
$custom-light: #a4a1e0;
$custom-dark: #000000;
JSON
{
  "hex": "#797bd2",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 210
  },
  "hsl": {
    "h": 238.652,
    "s": 49.721,
    "l": 64.902
  },
  "oklch": {
    "l": 0.61981,
    "c": 0.12984,
    "h": 280.9
  },
  "luminance": 0.22884
}

Semantic roles & 50–950 ramp

primary
#797BD2
secondary
#E3E2C4
accent
#BA28BD
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #797BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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