#796BD4#796BD4

#796BD4 is a mid, vivid blue. Relative luminance 0.193; OKLCH L 59.1% C 0.156 H 286.7°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#796BD4
RGBrgb(121, 107, 212)
HSLhsl(248, 55%, 63%)
HSVhsv(248, 50%, 83%)
CMYKcmyk(42.9%, 49.5%, 0%, 16.9%)
CIE-LABlab(51.07, 31.34, -52.49)
CIE-LCHlch(51.07, 61.13, 300.85°)
OKLaboklab(59.08% 0.0448 -0.1489)
OKLCHoklch(59.08% 0.156 286.7)
XYZxyz(25.0231, 19.3328, 64.6877)
Luminance0.1933 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796BD4 #C6D46B
analogous
#6B91D4 #796BD4 #AE6BD4
triadic
#796BD4 #D4796B #6BD479
tetradic
#796BD4 #D46B91 #C6D46B #6BD4AE
square
#796BD4 #D46B91 #C6D46B #6BD4AE
split-complementary
#796BD4 #D4AE6B #91D46B
monochromatic
#3B2C98 #4E3CC6 #796BD4 #A49AE2 #CFCAF0

Accessibility & contrast

On white

4.31
#796BD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#796BD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796BD4
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796BD4#FFFFFF#000000##000000
##796BD41.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F7CD8
Deuteranopia (green-blind)
#3D77D2
Tritanopia (blue-blind)
#5E8195
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #796bd4;
/* rgb */ color: rgb(121, 107, 212);
/* oklch */ color: oklch(59.1% 0.156 286.7);
Tailwind
colors: {
  custom: {
    50: '#a495e2',
    500: '#796bd4',
    950: '#000000',
  },
}
SCSS
$custom: #796bd4;
$custom-light: #a495e2;
$custom-dark: #000000;
JSON
{
  "hex": "#796bd4",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 212
  },
  "hsl": {
    "h": 248,
    "s": 54.974,
    "l": 62.549
  },
  "oklch": {
    "l": 0.59084,
    "c": 0.15553,
    "h": 286.7
  },
  "luminance": 0.19334
}

Semantic roles & 50–950 ramp

primary
#796BD4
secondary
#DBE0BA
accent
#C223AD
background
#FAF9FD
surface
#F4F1FB
border
#CECBD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #796BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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