#796BD0#796BD0

#796BD0 is a mid, vivid blue. Relative luminance 0.191; OKLCH L 58.8% C 0.150 H 287.2°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#796BD0
RGBrgb(121, 107, 208)
HSLhsl(248, 52%, 62%)
HSVhsv(248, 49%, 82%)
CMYKcmyk(41.8%, 48.6%, 0%, 18.4%)
CIE-LABlab(50.84, 30.20, -50.58)
CIE-LCHlch(50.84, 58.91, 300.84°)
OKLaboklab(58.84% 0.0444 -0.1433)
OKLCHoklch(58.84% 0.15 287.2)
XYZxyz(24.5248, 19.1335, 62.0632)
Luminance0.1913 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BD0 #C2D06B
analogous
#6B90D0 #796BD0 #AC6BD0
triadic
#796BD0 #D0796B #6BD079
tetradic
#796BD0 #D06B90 #C2D06B #6BD0AC
square
#796BD0 #D06B90 #C2D06B #6BD0AC
split-complementary
#796BD0 #D0AC6B #90D06B
monochromatic
#3C2E92 #4F3DC1 #796BD0 #A399DF #CDC8EE

Accessibility & contrast

On white

4.35
#796BD0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#796BD0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BD0
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BD0#FFFFFF#000000##000000
##796BD01.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#427CD4
Deuteranopia (green-blind)
#4176CE
Tritanopia (blue-blind)
#608094
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #796bd0;
/* rgb */ color: rgb(121, 107, 208);
/* oklch */ color: oklch(58.8% 0.150 287.2);
Tailwind
colors: {
  custom: {
    50: '#a495df',
    500: '#796bd0',
    950: '#000000',
  },
}
SCSS
$custom: #796bd0;
$custom-light: #a495df;
$custom-dark: #000000;
JSON
{
  "hex": "#796bd0",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 208
  },
  "hsl": {
    "h": 248.317,
    "s": 51.795,
    "l": 61.765
  },
  "oklch": {
    "l": 0.58835,
    "c": 0.15007,
    "h": 287.2
  },
  "luminance": 0.19134
}

Semantic roles & 50–950 ramp

primary
#796BD0
secondary
#D9DEB9
accent
#BF26AA
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #796BD0

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

Preview Lab → · Contrast checker → · Palette generator →

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