#796CD4#796CD4

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

Color values

HEX#796CD4
RGBrgb(121, 108, 212)
HSLhsl(248, 55%, 63%)
HSVhsv(248, 49%, 83%)
CMYKcmyk(42.9%, 49.1%, 0%, 16.9%)
CIE-LABlab(51.32, 30.75, -52.10)
CIE-LCHlch(51.32, 60.50, 300.55°)
OKLaboklab(59.27% 0.0436 -0.1478)
OKLCHoklch(59.27% 0.154 286.4)
XYZxyz(25.1280, 19.5426, 64.7227)
Luminance0.1954 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796CD4 #C7D46C
analogous
#6C93D4 #796CD4 #AD6CD4
triadic
#796CD4 #D4796C #6CD479
tetradic
#796CD4 #D46C93 #C7D46C #6CD4AD
square
#796CD4 #D46C93 #C7D46C #6CD4AD
split-complementary
#796CD4 #D4AD6C #93D46C
monochromatic
#3A2D99 #4E3DC6 #796CD4 #A49BE2 #CFCBF0

Accessibility & contrast

On white

4.28
#796CD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#796CD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #796CD4
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796CD4#FFFFFF#000000##000000
##796CD41.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#417DD8
Deuteranopia (green-blind)
#3F77D2
Tritanopia (blue-blind)
#5E8296
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #796cd4;
/* rgb */ color: rgb(121, 108, 212);
/* oklch */ color: oklch(59.3% 0.154 286.4);
Tailwind
colors: {
  custom: {
    50: '#a496e2',
    500: '#796cd4',
    950: '#000000',
  },
}
SCSS
$custom: #796cd4;
$custom-light: #a496e2;
$custom-dark: #000000;
JSON
{
  "hex": "#796cd4",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 212
  },
  "hsl": {
    "h": 247.5,
    "s": 54.737,
    "l": 62.745
  },
  "oklch": {
    "l": 0.59265,
    "c": 0.15408,
    "h": 286.4
  },
  "luminance": 0.19544
}

Semantic roles & 50–950 ramp

primary
#796CD4
secondary
#DCE1BB
accent
#C223AE
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83

Preview Lab

Preview with #796CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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