#796BDB#796BDB

#796BDB is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.5% C 0.165 H 285.9°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#796BDB
RGBrgb(121, 107, 219)
HSLhsl(248, 61%, 64%)
HSVhsv(248, 51%, 86%)
CMYKcmyk(44.7%, 51.1%, 0%, 14.1%)
CIE-LABlab(51.49, 33.36, -55.79)
CIE-LCHlch(51.49, 65.01, 300.88°)
OKLaboklab(59.53% 0.0453 -0.1586)
OKLCHoklch(59.53% 0.165 285.9)
XYZxyz(25.9253, 19.6937, 69.4394)
Luminance0.1969 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BDB #CDDB6B
analogous
#6B95DB #796BDB #B16BDB
triadic
#796BDB #DB796B #6BDB79
tetradic
#796BDB #DB6B95 #CDDB6B #6BDBB1
square
#796BDB #DB6B95 #CDDB6B #6BDBB1
split-complementary
#796BDB #DBB16B #95DB6B
monochromatic
#3728A4 #4C3ACF #796BDB #A69CE7 #D2CDF3

Accessibility & contrast

On white

4.25
#796BDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#796BDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BDB
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BDB#FFFFFF#000000##000000
##796BDB1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#377EDF
Deuteranopia (green-blind)
#3577D9
Tritanopia (blue-blind)
#5A8399
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #796bdb;
/* rgb */ color: rgb(121, 107, 219);
/* oklch */ color: oklch(59.5% 0.165 285.9);
Tailwind
colors: {
  custom: {
    50: '#a595e7',
    500: '#796bdb',
    950: '#000000',
  },
}
SCSS
$custom: #796bdb;
$custom-light: #a595e7;
$custom-dark: #000000;
JSON
{
  "hex": "#796bdb",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 219
  },
  "hsl": {
    "h": 247.5,
    "s": 60.87,
    "l": 63.922
  },
  "oklch": {
    "l": 0.59528,
    "c": 0.16499,
    "h": 285.9
  },
  "luminance": 0.19695
}

Semantic roles & 50–950 ramp

primary
#796BDB
secondary
#E0E5BD
accent
#C91DB3
background
#FAF9FE
surface
#F4F1FC
border
#CECBD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796BDB

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

Preview Lab → · Contrast checker → · Palette generator →

#796BDB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva