#796BD7#796BD7

#796BD7 is a mid, vivid blue. Relative luminance 0.195; OKLCH L 59.3% C 0.160 H 286.4°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#796BD7
RGBrgb(121, 107, 215)
HSLhsl(248, 57%, 63%)
HSVhsv(248, 50%, 84%)
CMYKcmyk(43.7%, 50.2%, 0%, 15.7%)
CIE-LABlab(51.25, 32.21, -53.91)
CIE-LCHlch(51.25, 62.80, 300.86°)
OKLaboklab(59.27% 0.045 -0.1531)
OKLCHoklch(59.27% 0.16 286.4)
XYZxyz(25.4051, 19.4856, 66.6993)
Luminance0.1949 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BD7 #C9D76B
analogous
#6B93D7 #796BD7 #AF6BD7
triadic
#796BD7 #D7796B #6BD779
tetradic
#796BD7 #D76B93 #C9D76B #6BD7AF
square
#796BD7 #D76B93 #C9D76B #6BD7AF
split-complementary
#796BD7 #D7AF6B #93D76B
monochromatic
#392A9D #4D3BCA #796BD7 #A59BE4 #D0CBF1

Accessibility & contrast

On white

4.29
#796BD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#796BD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BD7
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BD7#FFFFFF#000000##000000
##796BD71.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C7DDB
Deuteranopia (green-blind)
#3A77D5
Tritanopia (blue-blind)
#5C8297
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #796bd7;
/* rgb */ color: rgb(121, 107, 215);
/* oklch */ color: oklch(59.3% 0.160 286.4);
Tailwind
colors: {
  custom: {
    50: '#a595e4',
    500: '#796bd7',
    950: '#000000',
  },
}
SCSS
$custom: #796bd7;
$custom-light: #a595e4;
$custom-dark: #000000;
JSON
{
  "hex": "#796bd7",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 215
  },
  "hsl": {
    "h": 247.778,
    "s": 57.447,
    "l": 63.137
  },
  "oklch": {
    "l": 0.59273,
    "c": 0.15959,
    "h": 286.4
  },
  "luminance": 0.19487
}

Semantic roles & 50–950 ramp

primary
#796BD7
secondary
#DDE2BC
accent
#C520B0
background
#FAF9FE
surface
#F4F1FC
border
#CECBD5
text
#100D16
muted
#7F7E84

Preview Lab

Preview with #796BD7

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

Preview Lab → · Contrast checker → · Palette generator →

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