#796BD2#796BD2

#796BD2 is a mid, vivid blue. Relative luminance 0.192; OKLCH L 59.0% C 0.153 H 287.0°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#796BD2
RGBrgb(121, 107, 210)
HSLhsl(248, 53%, 62%)
HSVhsv(248, 49%, 82%)
CMYKcmyk(42.4%, 49%, 0%, 17.6%)
CIE-LABlab(50.96, 30.77, -51.53)
CIE-LCHlch(50.96, 60.02, 300.84°)
OKLaboklab(58.96% 0.0446 -0.1461)
OKLCHoklch(58.96% 0.153 287)
XYZxyz(24.7724, 19.2326, 63.3673)
Luminance0.1923 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BD2 #C4D26B
analogous
#6B91D2 #796BD2 #AC6BD2
triadic
#796BD2 #D2796B #6BD279
tetradic
#796BD2 #D26B91 #C4D26B #6BD2AC
square
#796BD2 #D26B91 #C4D26B #6BD2AC
split-complementary
#796BD2 #D2AC6B #91D26B
monochromatic
#3B2D95 #4F3CC4 #796BD2 #A39AE0 #CEC9EF

Accessibility & contrast

On white

4.33
#796BD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#796BD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BD2
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BD2#FFFFFF#000000##000000
##796BD21.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#407CD6
Deuteranopia (green-blind)
#3F77D0
Tritanopia (blue-blind)
#5F8095
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #796bd2;
/* rgb */ color: rgb(121, 107, 210);
/* oklch */ color: oklch(59.0% 0.153 287.0);
Tailwind
colors: {
  custom: {
    50: '#a495e0',
    500: '#796bd2',
    950: '#000000',
  },
}
SCSS
$custom: #796bd2;
$custom-light: #a495e0;
$custom-dark: #000000;
JSON
{
  "hex": "#796bd2",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 210
  },
  "hsl": {
    "h": 248.155,
    "s": 53.368,
    "l": 62.157
  },
  "oklch": {
    "l": 0.58959,
    "c": 0.1528,
    "h": 287
  },
  "luminance": 0.19233
}

Semantic roles & 50–950 ramp

primary
#796BD2
secondary
#DADFB9
accent
#C125AC
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #796BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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