#797BD5#797BD5

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

Color values

HEX#797BD5
RGBrgb(121, 123, 213)
HSLhsl(239, 52%, 65%)
HSVhsv(239, 43%, 84%)
CMYKcmyk(43.2%, 42.3%, 0%, 16.5%)
CIE-LABlab(55.11, 22.09, -46.63)
CIE-LCHlch(55.11, 51.60, 295.34°)
OKLaboklab(62.15% 0.0251 -0.1317)
OKLCHoklch(62.15% 0.134 280.8)
XYZxyz(26.9748, 23.0337, 65.9625)
Luminance0.2303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BD5 #D5D379
analogous
#79A9D5 #797BD5 #A579D5
triadic
#797BD5 #D5797B #7BD579
tetradic
#797BD5 #D579A9 #D5D379 #79D5A5
square
#797BD5 #D579A9 #D5D379 #79D5A5
split-complementary
#797BD5 #D5A579 #A9D579
monochromatic
#3235A1 #4A4DC6 #797BD5 #A8A9E4 #D6D7F2

Accessibility & contrast

On white

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

On black

5.61
#797BD5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BD5
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BD5#FFFFFF#000000##000000
##797BD51.003.755.615.61
#FFFFFF3.751.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A87D8
Deuteranopia (green-blind)
#5481D3
Tritanopia (blue-blind)
#5C8D9E
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #797bd5;
/* rgb */ color: rgb(121, 123, 213);
/* oklch */ color: oklch(62.2% 0.134 280.8);
Tailwind
colors: {
  custom: {
    50: '#a4a1e2',
    500: '#797bd5',
    950: '#000000',
  },
}
SCSS
$custom: #797bd5;
$custom-light: #a4a1e2;
$custom-dark: #000000;
JSON
{
  "hex": "#797bd5",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 213
  },
  "hsl": {
    "h": 238.696,
    "s": 52.273,
    "l": 65.49
  },
  "oklch": {
    "l": 0.6215,
    "c": 0.13409,
    "h": 280.8
  },
  "luminance": 0.23035
}

Semantic roles & 50–950 ramp

primary
#797BD5
secondary
#E4E4C5
accent
#BC26C0
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100E15
muted
#7F7E83

Preview Lab

Preview with #797BD5

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

Preview Lab → · Contrast checker → · Palette generator →

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